Commit graph

418 commits

Author SHA1 Message Date
Fred Silberberg 08e94b3029
Update function pointer proposal with LDM changes (#2923)
* Update function pointer proposal with LDM changes

* Remove unnecessary section about calling convention
2019-11-18 09:44:24 -08:00
Neal Gafter e14bb331fd
Update DIM proposal to forbid class declared within variant interface. (#2967) 2019-11-15 17:04:28 -08:00
Andy Gocke 5983461e05 Add proposal for discriminated unions 2019-11-14 16:40:28 -08:00
Julien Couvreur f466a1415f
Remove mentions of safeonly context (#2900) 2019-10-29 14:18:56 -07:00
Bill Wagner b8f1103eb6
remove locale (#2915)
These two links both contained the "en-us" locale. That directs  readers to the English version, rather than the localized version based on their browser environment.
2019-10-29 09:33:40 -04:00
Charles Stoner 1b488e76c2
Add static local functions proposal (#2891) 2019-10-24 09:55:41 -07:00
Julien Couvreur e9afb74cc1
Create static-lambdas.md (#2899) 2019-10-22 10:11:01 -07:00
Andrew Arnott da1180f7ea Fix typo/grammatical error 2019-10-04 15:30:49 -07:00
Neal Gafter 5dd11df697 Update spec for pattern-matching in C# 8.0. 2019-10-04 15:22:27 -07:00
Jared Parsons da452002c3
Merge pull request #2829 from jaredpar/fix-safety
Span safety samples
2019-09-27 12:55:48 -07:00
Bill Wagner 65ea1e6dc0
fold ranges changes into initial spec (#2797)
* fold ranges changes into initial spec

See https://github.com/dotnet/docs/issues/12772#issuecomment-501451870

This will read better as a coherent story for the Range and Index features as delivered.

* update the description of Slice.

* update precedence rules for range expression.

* Simplify language to move from a proposed design to a spec

This removes some of the history and concerns with the previous design.
2019-09-27 09:40:00 -07:00
Jared Parsons 1c68f302ab Span safety samples
Include same samples and explanations for why several of the `Span<T>`
and `ref struct` rules exist.
2019-09-26 10:47:52 -07:00
Fred Silberberg e1cdd0e5ff
Updates to the function pointers spec. (#2812)
* Updates to the function pointers spec.
2019-09-23 11:28:14 -07:00
Mads Torgersen 93cec651e3 Merge branch 'master' into design-notes 2019-09-12 16:02:09 -07:00
Julien Couvreur 4930dbd0f0
Merge pull request #2391 from MihaZupan/master
Fix typos in format proposal
2019-09-10 14:32:16 -07:00
AlekseyTs 568e8b0dfc
default-interface-methods.md: Adjust dependency rules for types in "Binding base clauses" section. (#2785) 2019-09-05 16:50:16 -07:00
Youssef Victor 3211a34eac typo (#2705) 2019-08-27 19:27:42 -07:00
Mads Torgersen 68462ba9c5 Merge branch 'master' into design-notes 2019-08-26 13:14:56 -07:00
Leonid Tsarev af27912886 Update recordsv2.md (#2717)
Seems according to prev. text that "final generated code" should have `[WithConstructor]` attribute on `With` method. It's omission, isn't it.
2019-08-08 13:32:29 -04:00
Julien Couvreur f7952cdddf
Update target-typed-default.md 2019-07-30 13:23:29 -07:00
Andy Gocke 856c335cc5 Add new "nominal" records proposal 2019-07-29 18:39:10 -07:00
Mads Torgersen 27487fa029
Create primary-constructors.md 2019-07-23 15:31:23 -07:00
Julien Couvreur 098f046a76
Move Ranges proposal to csharp-8.0 folder (#2594) 2019-06-12 14:08:21 -07:00
Fred Silberberg 5a88d5432d
Merge pull request #2591 from 333fred/update-null-coalescing
Update ??= proposal with changes from LDM
2019-06-11 14:18:13 -07:00
Fredric Silberberg edddfb9e5d
Update ??= proposal with changes from LDM 2019-06-11 14:16:17 -07:00
Julien Couvreur 1f8c618f4b
Move DIM and readonly member proposals to C# 8 folder (#2592) 2019-06-11 13:32:10 -07:00
Mads Torgersen d303e32fea Update nullable-reference-types-specification.md 2019-05-29 14:52:23 -07:00
Nick Schonning 6cd82c21ed fix: MD033/no-inline-html
Inline HTML get swallowed in MD and HTML rendering
2019-05-25 01:31:46 -04:00
Fred Silberberg a98bdb81b4
fix: MD038/no-space-in-code (#2423)
fix: MD038/no-space-in-code
2019-05-23 18:06:50 -07:00
Fred Silberberg 8152182f0a
Fix spelling mistake (#2487)
Fix spelling mistake
2019-05-23 10:30:18 -07:00
Fred Silberberg 31bd4e65fc
typo: Double word "the" (#2426)
typo: Double word "the"
2019-05-23 10:28:06 -07:00
Mitch Bodmer 44b02c7ea2
Fixed link. 2019-05-15 11:10:46 -07:00
Jan Kotas c4937c7e6c
Extensible set of unmanaged calling conventions (#2432) 2019-05-14 15:51:21 -07:00
Bill Wagner ba519de468
Return storage that exists (#2523)
* Return storage that exists

Fixes #12301

* Update proposals/csharp-7.2/readonly-ref.md
2019-05-13 18:12:24 -04:00
Rikki Gibson e2b6b9c497 Fix typo 2019-05-10 15:32:00 -07:00
Bill Wagner df7104b072 Add base interfaces to declarations (#2461)
In the modified sample, I think these base interfaces were missing.
2019-05-08 09:22:50 -07:00
Rich Lander 759bdd3c56
Fix spelling mistake 2019-05-04 20:32:51 -07:00
Julien Couvreur bec6e78996
Document [EnumeratorCancellation] attribute (#2458) 2019-04-20 11:32:44 -07:00
Andy Gocke c3de968750
Design changes for pattern index/range (#2446) 2019-04-17 00:46:15 -07:00
Nikita Potapenko 2027b149eb Fix link (#2437)
Fixes #11829
2019-04-15 14:43:47 -07:00
Nick Schonning 00de1a1c74 typo: Double word "the" 2019-04-13 14:44:05 -04:00
Nick Schonning 870cc06bea fix: MD038/no-space-in-code
Spaces inside code span elements
2019-04-13 14:23:40 -04:00
Patrick Westerhoff 1262e7f1f7 Fix duplicate part from suggestion 2019-04-08 23:58:03 +02:00
Jared Parsons c229cae634
Merge pull request #2397 from jaredpar/fix-range
Proposed changes to Index / Range
2019-04-08 08:57:38 -07:00
Jared Parsons 2a61adc3c0
PR feedback 2019-04-08 08:56:51 -07:00
Patrick Westerhoff 0071f73885
Apply suggestions from code review
I asked, @poke delivered.

Co-Authored-By: jaredpar <jaredpparsons@gmail.com>
2019-04-05 16:47:51 -07:00
Bill Wagner 0216f6a7ec
Apply suggestions from code review
Co-Authored-By: jaredpar <jaredpparsons@gmail.com>
2019-04-05 12:54:59 -07:00
Jared Parsons 3e4c165a3c
Update proposal based on LDM 2019-04-05 08:41:10 -07:00
Miha Zupan 0a9af0f248
Fix typos in format proposal 2019-04-04 14:58:14 +02:00
Neal Gafter 2d10906508
Update default-interface-methods.md
Add rule that an interface may not depend on itself.
2019-04-02 17:50:01 -07:00
Neal Gafter 46d1499c77
Update default-interface-methods.md
Add a rule to break cycles while binding an interface's base clause.
2019-04-02 17:06:18 -07:00
Jared Parsons 8dd6726126
First draft 2019-03-31 20:39:22 -07:00
Jared Parsons 7e4658dde1
Target typed new write up 2019-03-31 19:03:26 -07:00
Jared Parsons a797e9dc95
Rough outline 2019-03-31 16:00:29 -07:00
Maira Wenzel afe6679f71
Change link to https 2019-03-08 17:42:08 -08:00
Bill Wagner 37efea9c83
markdown lint fixes for 8.0 proposals (#2318)
* markdown lint fixes for 8.0 proposals

Summary:

1. a few header formatting fixes
1. use `csharp` or `antlr` as the language identifier for code fences.
1. update links to relative links for articles published on docs.

* change the links to records.md to absolute links

When published on docs.microsoft.com, the links from these proposals will resolve to the source on dotnet/csharplang.

That's the desired behavior for records.md, because that is a proposal feature that has not been implemented.
2019-03-08 08:30:23 -05:00
Maira Wenzel fb4d3f3ab3
fix broken links (#2320) 2019-03-07 17:38:27 -08:00
Bill Wagner ac20120af1
markdown fixes for 7.3 proposals (#2317)
These were:

1. adding `csharp` as the language identifier.
1. making relative links to content published on docs.microsoft.com
1. small grammar fixes.
2019-03-07 17:04:08 -05:00
Bill Wagner 8d75920537
update 7.2 proposals for markdown lint concerns (#2316)
Primarily these changes:

1. ATX style headers.
1. `csharp` as the language identifier
1. relative link to other published proposals.
2019-03-07 17:03:44 -05:00
Bill Wagner ab7ad82fd9
fix one bad link. (#2319) 2019-03-07 17:01:32 -05:00
Bill Wagner f69b012846 markdown fixes for 7.3 proposals
These were:

1. adding `csharp` as the language identifier.
1. making relative links to content published on docs.microsoft.com
1. small grammar fixes.
2019-03-07 16:04:57 -05:00
Maira Wenzel 3ec830b86c fix formatting 2019-03-07 10:03:08 -08:00
Maira Wenzel 24289fe11c markdown fixes 2019-03-07 10:00:39 -08:00
Julien Couvreur 725763343a
Merge pull request #2310 from BillWagner/update-proposal-header
markdown syntax updates
2019-03-07 18:31:39 +01:00
Julien Couvreur 2d4ece31c6
Merge pull request #2311 from mairaw/markdown1
markdown fixes - part 1
2019-03-07 18:31:16 +01:00
Julien Couvreur bb99729454
Merge pull request #2312 from BillWagner/markdown-lint-70
markdown lint changes to C# 7.0 proposals
2019-03-07 18:23:51 +01:00
Bill Wagner 74f60810a3 markdown lint for C# 7.1 proposals
These had two sets of changes:

1. use `csharp` as the language identifier for code fences.
1. use relative links to other articles in the dotnet/csharplang repo that are being published on docs.microsoft.com so those links resolve to the article published there from that site.
2019-03-07 11:50:08 -05:00
Bill Wagner 8b7d2d5410 markdown lint changes to C# 7.0 proposals
These changes are to improve the experience for publishing these proposals.

One change should be carefully reviewed to ensure I didn't introduce any technical errors:
I translated the binary literals grammar into ANTLR to match all other specs and proposals.  See changes in proposals/csharp-7.0/binary-literals.md

Other changes are:
1. Use  consistent ATX headers, with one H1 per proposal.
1. use `csharp` as language identifier in code snippets
1. Use relative links to other markdown from the dotnet/csharplang repo. That way, when published on docs.microsoft.com, the links will resolve to the publsihed articles on the same site. (Links to content not being published are not modified.)
1. spelling / capitalization found by the lint tool.
2019-03-07 11:39:58 -05:00
Maira Wenzel 9d5989ce2d markdown fixes 2019-03-06 22:28:47 -08:00
Bill Wagner a1349f658b markdown syntax updates
Add an H1

Fix the horizontal rule tag.
2019-03-06 22:32:43 -05:00
Maira Wenzel 16fb40c64a
Change heading to H1 2019-03-05 16:14:18 -08:00
Julien Couvreur 7f11d1a8b6
Merge pull request #2301 from BillWagner/more-broken-links
fix two more broken links
2019-03-05 18:55:04 +01:00
Jared Parsons 68c370b395
Merge pull request #2293 from jaredpar/fix-format
Efficient params and string formatting
2019-03-05 09:24:32 -08:00
Jared Parsons 6e477209f9
Cleaned up based on feedback 2019-03-05 09:23:03 -08:00
Bill Wagner 57b6b64a05 add anchor to correct location
Deconstruct semantics are described in 8.0, in the "Positional pattern" section.
2019-03-05 12:11:51 -05:00
Brian Dukes ac55957ea8
Apply suggestions from code review
so many typos to fix. Thanks for all the help.

Co-Authored-By: jaredpar <jaredpparsons@gmail.com>
2019-03-05 09:09:06 -08:00
Julien Couvreur 147ebcefe7
Merge pull request #2296 from BillWagner/fix-broken-link
The spec for records is still in the parent directory
2019-03-05 03:34:08 +01:00
Bill Wagner fbd90c7a3b The spec for records is still in the parent directory
When this file was moved into the 7.0 proposals directory, the link to records should have been updated to the parent directory.
2019-03-04 20:41:06 -05:00
Bruno Logerfo 48cc0093b9
Update proposals/format.md
JaredPar can't spell.

Co-Authored-By: jaredpar <jaredpparsons@gmail.com>
2019-03-04 09:43:44 -08:00
Jared Parsons a09c16d640
Ready for review 2019-03-04 09:33:04 -08:00
Jared Parsons d4ab7b995d
More 2019-03-04 07:55:56 -08:00
Jared Parsons fc0eeac8da
More progress 2019-03-04 07:54:54 -08:00
Jared Parsons d3527f492a
More progress 2019-03-04 07:47:11 -08:00
Jared Parsons be08f9ce0c
More 2019-03-03 20:00:59 -08:00
Jared Parsons dbee66e702
Revision
Changes
- Remove `VariantCollection`
- Move the `IEnumerable<T>` variant into the main section
- Simplify the language around `Span<T>` and `ReadOnlySpan<T>`
2019-03-03 18:44:19 -08:00
MichaWiedenmann 56d8447281 typo (#2270) 2019-02-26 17:59:36 -08:00
Rikki Gibson f6e07218b6
Specify readonly members behavior for events (#2271)
* Update readonly-instance-members.md

* Update readonly-instance-members.md

* Update readonly-instance-members.md
2019-02-26 16:13:45 -08:00
Andy Gocke c2ae185e71
Add well-known member details (#2214)
This change reflects the recent CoreFX and language decisions about
naming and signature of the Index/Range types & members.
2019-02-25 16:20:18 -08:00
Rikki Gibson 1f832c1c7d
Update readonly-instance-members.md 2019-02-25 15:07:00 -08:00
Julien Couvreur a8d1fb6397
Move more proposals to C# 8.0 folder (#2257) 2019-02-23 01:03:19 +01:00
Julien Couvreur ed560f65a1
Move some proposals to C# 8.0 folder (#2256) 2019-02-23 00:54:47 +01:00
Neal Gafter ec66ea2ede
Require base(T).M() has *most specific override* (#2223)
Require that `Base` contains a *most specific override* for `M` in the expression `base(Base).M()`.
2019-02-13 16:10:36 -08:00
Joseph Musser 72a4daa853 Fixed typos (#2167)
* Fixed typos in proposals/

* Fixed typos in meetings/2018/
2019-02-12 13:45:25 -08:00
Neal Gafter b72fe5a1d0
Update default interface method spec per LDM decisions (#2215)
* Update default interface method spec per LDM decisions
* Add open DIM issues to agenda
2019-02-12 12:00:47 -08:00
Neal Gafter ba74636e6c
Minor changes to patterns spec: (#2171)
- Allow trailing comma in property pattern
- Allow trailing comma in switch expression
- Rename deconstruct_subpattern to positional_subpattern
2019-01-24 16:09:02 -08:00
Jared Parsons 7f75c8c42f
PR feedback 2019-01-23 07:57:56 -08:00
Jared Parsons 4396e64b8a
Native callback 2019-01-23 07:55:27 -08:00
Jared Parsons 9b8e8637ea
Instance members 2019-01-23 07:46:05 -08:00
Jared Parsons db2719c96c
Clarify static delegates 2019-01-23 07:32:03 -08:00
Jared Parsons 724bc02887
Clarify the naming reasons 2019-01-23 07:22:15 -08:00
Jared Parsons b3cd4788ff
Move to func* syntax 2019-01-23 07:11:59 -08:00
Jared Parsons 6829da0140
Work on ValueFormattableString 2019-01-14 20:52:35 -08:00
Jared Parsons eafd1d233a
Variant section 2019-01-14 20:19:19 -08:00
Jared Parsons 1411f2cc75
More work 2019-01-14 18:21:33 -08:00
Jared Parsons dc6d70e02c
Cleanup 2019-01-14 16:32:00 -08:00
Jared Parsons 32ae3b834c
More work 2019-01-14 16:21:39 -08:00
Jared Parsons 94eef2a172
Responding to LDM feedback 2019-01-14 13:15:37 -08:00
Jared Parsons e3b88f2b10
Null arg checking proposal
Proposal for simplified null argument validation.
2019-01-13 18:16:19 -08:00
Mads Torgersen d0f4efa010
Merge pull request #2134 from dotnet/design-notes
Describe Merging
2019-01-10 16:30:50 -08:00
Mads Torgersen 365604f3d5 Describe Merging 2019-01-10 16:29:57 -08:00
Neal Gafter bb0f682299
Add ref-escape rules for unary operators. (#2117) 2019-01-04 11:27:28 -08:00
Jared Parsons a901f5e21d
params Span discussion 2019-01-03 16:19:24 -08:00
Jared Parsons 60df1b01d7
More outlining 2019-01-03 15:45:39 -08:00
Jared Parsons 3d4b9aad51
Initial template 2019-01-03 15:35:01 -08:00
Amadeusz Sadowski 52307b6f38 Upate patterns.md - always use switch_expression (#2096)
There were some not updated usages of *match_expression*. I've replaced all of them with *switch_expression* as I guess was intended.
2018-12-20 20:57:25 -08:00
Neal Gafter a82f6a7950
Update link to scala paper 2018-12-20 13:14:35 -08:00
Neal Gafter 73c4bd321a
Update patterns.md (#2094)
* Update patterns.md per review comments
2018-12-20 11:19:54 -08:00
Jared Parsons 630811536f
Merge pull request #1703 from jaredpar/fix-using
Using patterns and declarations
2018-12-20 10:51:25 -08:00
Julien Couvreur eee8f9444e
Merge pull request #2022 from pkulikov/patch-2
ref-local-reassignment.md: correct C# version
2018-12-19 22:38:33 -08:00
Neal Gafter 443f521cb7
Update patterns.md 2018-12-19 17:04:12 -08:00
Mads Torgersen 4be884f7ec Fixing nullable spec 2018-12-14 12:40:25 -08:00
Mads Torgersen 10723c7733 Describe generic type inference 2018-12-14 12:37:38 -08:00
Mads Torgersen a29c4ac86f Update nullable-reference-types-specification.md
Add more stuff
2018-12-05 16:17:26 -08:00
Mads Torgersen 15203b2751 Add NRT spec 2018-11-27 17:03:46 -08:00
Petr Kulikov fa13e53bd3
Update ref-local-reassignment.md 2018-11-25 21:13:39 +01:00
Julien Couvreur 5fba6ba2d4
Merge pull request #1780 from alrz/patch-1
Update target-typed-new.md
2018-11-07 17:12:41 -08:00
Julien Couvreur 3f4c0ee50a
Merge pull request #1909 from ajesusflores/patch-1
Minor punctuation changes.
2018-11-07 17:05:31 -08:00
Julien Couvreur 221ca694e3
Merge pull request #1919 from darkstar/fixes
Fix some typos
2018-11-07 17:05:04 -08:00
Julien Couvreur 26869760ff
Merge pull request #1921 from yaakov-h/nits
Fix a few formatting nits
2018-11-07 17:04:11 -08:00
Jared Parsons f4433cc7c5
Merge pull request #1951 from jaredpar/fix-funcptr
Function Pointer Proposal
2018-10-23 11:28:57 -07:00
Kevin Jones 58816d166e
Update proposals/function-pointers.md
Co-Authored-By: jaredpar <jaredpparsons@gmail.com>
2018-10-23 11:27:25 -07:00
Julien Couvreur b52d3de0d1 Update syntax to await foreach (#1934)
* Update syntax to `await foreach`

* Update async-streams.md
2018-10-16 20:08:33 -04:00
Jared Parsons 9bb215a356
Clean up the proposal 2018-10-15 08:25:48 -07:00
Jared Parsons 8bbec585ce
Updates 2018-10-11 11:21:26 -07:00
Jared Parsons 78795986cd
Updates 2018-10-10 17:46:36 -07:00
Yaakov 683e7dc811 Correct some single quotes which should be doubles 2018-10-09 21:11:06 +11:00
Yaakov 7c69baba8f Replace weird quote character with regular single quote 2018-10-09 21:07:42 +11:00
Yaakov 100848e02c Add code formatting to variable 2018-10-09 21:04:31 +11:00
Stephen Toub f5d6fb7fa6
Fix foreach async to be foreach await 2018-10-08 20:29:50 -04:00
Michael D d6f71bba14 Fix typos in patterns 2018-10-08 23:10:52 +02:00
Michael D da4955a23b Fix typos in intrinsics 2018-10-08 23:10:33 +02:00
Michael D abe474b662 Fix typo in intptr-operators 2018-10-08 23:10:15 +02:00
Michael D fabd404c56 Fix typo in default-interface-methods 2018-10-08 23:09:53 +02:00
Michael D 8271328f20 Fix typo in async-streams 2018-10-08 23:09:18 +02:00
Stephen Toub 9d86668fcd
Prototype implemented 2018-10-05 22:34:22 -04:00
Stephen Toub 8eed18fcf6
Update async iterators proposal based on recent discussions 2018-10-05 22:33:35 -04:00
Jared Parsons 9b658fe514
Changes 2018-10-05 14:18:13 -07:00
Alfonso Jesus Flores Alvarado d963cada64
Minor punctuation changes. 2018-10-03 15:07:36 -05:00
Jared Parsons 7ad1b61feb
Delegate thoughts 2018-09-17 14:04:35 -07:00
Jared Parsons a3dfac758f
Proposal Template 2018-09-17 14:04:13 -07:00