README.md
C# Language Design Notes for 2015
Overview of meetings and agendas for 2015
Jan 21, 2015
C# Design Meeting Notes for Jan 21, 2015
This is the first design meeting for the version of C# coming after C# 6. We shall colloquially refer to it as C# 7. The meeting focused on setting the stage for the design process and homing in on major themes and features.
- Design process
- Themes
- Features
Jan 28, 2015
C# Design Meeting Notes for Jan 28, 2015
- Immutable types
- Safe fixed-size buffers
- Pattern matching
- Records
Feb 4, 2015
C# Design Meeting Notes for Feb 4, 2015
- Internal Implementation Only (C# 6 investigation)
- Tuples, records and deconstruction
- Classes with value semantics
Feb 11, 2015
C# Design Meeting Notes for Feb 11, 2015
- Destructible types <we recognize the problem but do not think this is quite the right solution for C#>
- Tuples <we like the proposal, but there are several things to iron out>
Mar 4, 2015
C# Design Meeting Notes for Mar 4, 2015
InternalImplementationOnly
attribute <no>- Should
var x = nameof(x)
work? <no> - Record types with serialization, data binding, etc. <keep thinking>
- "If I had a billion dollars...": nullability <daunting but worth pursuing>
Mar 10 and 17, 2015
C# Design Meeting Notes for Mar 10 and 17, 2015
These two meetings looked exclusively at nullable/non-nullable reference types. I've written them up together to add more of the clarity of insight we had when the meetings were over, rather than represent the circuitous path we took to get there.
- Nullable and non-nullable reference types
- Opt-in diagnostics
- Representation
- Potentially useful rules
- Safely dereferencing nullable reference types
- Generating null checks
Mar 18, 2015
C# Design Meeting Notes for Mar 18, 2015
In this meeting we looked over the top C# language feature requests on UserVoice to see which ones are reasonable to push on further in C# 7.
- Non-nullable reference types (already working on them)
- Non-nullary constructor constraints (require CLR support)
- Support for INotifyPropertyChanged (too specific; metaprogramming?)
- GPU and DirectX support (mostly library work; numeric constraints?)
- Extension properties and static members (certainly interesting)
- More code analysis (this is what Roslyn analyzers are for)
- Extension methods in instance members (fair request, small)
- XML comments (Not a language request)
- Unmanaged constraint (requires CLR support)
- Compilable strings (this is what nameof is for)
- Multiple returns (working on it, via tuples)
- ISupportInitialize (too specific; hooks on object initializers?)
- ToNullable (potentially part of nullability support)
- Statement lambdas in expression trees (fair request, big feature!)
- Language support for Lists, Dictionaries and Tuples (Fair; already working on tuples)
A number of these are already on the table.
Mar 24, 2015
C# Design Meeting Notes for Mar 24, 2015
In this meeting we went through a number of the performance and reliability features we have discussed, to get a better reading on which ones have legs. They end up falling roughly into three categories:
- Green: interesting - let's keep looking
- Yellow: there's something there but this is not it
- Red: probably not
As follows:
- ref returns and locals <green> (#118)
- readonly locals and parameters <green> (#115)
- Method contracts <green> (#119)
- Does not return <green> (#1226)
- Slicing <green> (#120)
- Lambda capture lists <yellow - maybe attributes on lambdas> (#117)
- Immutable types <yellow in current form, but warrants more discussion> (#159)
- Destructible types <yellow - fixing deterministic disposal is interesting> (#161)
- Move <red> (#160)
- Exception contracts <red>
- Static delegates <red>
- Safe fixed-size buffers in structs <red> (#126)
Some of these were discussed again, some we just reiterated our position.
Mar 25, 2015 (Design Review)
C# Language Design Review, Mar 25, 2015 Additional Notes
We've recently changed gears a little on the C# design team. In order to keep a high design velocity, part of the design team meets one or two times each week to do detailed design work. Roughly monthly the full design team gets together to review and discuss the direction. This was the first such review.
- Overall direction
- Nullability features
- Performance and reliability features
- Tuples
- Records
- Pattern matching
Apr 1 and Apr 8, 2015
C# Design Meeting Notes for Apr 1 and Apr 8, 2015
Matt Warren wrote a Roslyn analyzer as a low cost way to experiment with nullability semantics. In these two meetings we looked at evolving versions of this analyzer, and what they imply for language design.
The analyzer is here.
Apr 14, 2015
C# Design Meeting Notes for Apr 14, 2015
Bart De Smet visited from the Bing team to discuss their use of Expression Trees, and in particular the consequences of their current shortcomings.
The Expression Tree API today is not able to represent all language features, and the language supports lambda conversions even for a smaller subset than that.
Apr 15, 2015
C# Design Meeting Notes for Apr 15, 2015
In this meeting we looked at nullability and generics. So far we have more challenges than solutions, and while we visited some of them, we don't have an overall approach worked out yet.
- Unconstrained generics
- Overriding annotations
- FirstOrDefault
- TryGet
Apr 22, 2015 (Design Review)
C# Language Design Review, Apr 22, 2015
- Expression tree extension
- Nullable reference types
- Facilitating wire formats
- Bucketing
May 20, 2015
C# Design Meeting Notes for May 20, 2015
- We discussed whether and how to add local functions to C#, with the aim of prototyping the feature in the near future.
May 25, 2015
C# Design Meeting Notes for May 25, 2015
Today we went through a bunch of the proposals on GitHub and triaged them for our list of features.
Jul 1, 2015
C# Design Meeting Notes for Jul 1, 2015
We are gearing up to prototype the tuple feature, and put some stakes in the ground for its initial design. This doesn't mean that the final design will be this way, and some choices are arbitrary. We merely want to get to where a prototype can be shared with a broader group of C# users, so that we can gather feedback and learn from it.
Jul 7, 2015
C# Design Meeting Notes for Jul 7, 2015
With Eric Lippert from Coverity as an honored guest, we looked further at the nullability feature.
- Adding new warnings
- Generics and nullability
Aug 18, 2015
C# Design Meeting Notes for Aug 18, 2015
A summary of the design we (roughly) landed on in #5031 was put out on GitHub as #5032, and this meeting further discussed it.
- Array creation
- Null checking operator
- Generics
Sep 1, 2015
C# Design Meeting Notes for Sep 1, 2015
The meeting focused on design decisions for prototypes. There's no commitment for these decisions to stick through to a final feature; on the contrary the prototypes are being made in order to learn new things and improve the design.
- ref returns and ref locals
- pattern matching
Sep 2, 2015
C# Design Meeting Notes for Sep 2, 2015
- Extending nameof
- What do branches mean
- Supersedes
Sep 8, 2015
C# Design Meeting Notes for Sep 8, 2015
- Check-in on some of our desirable features to see if we have further thoughts
- Start brainstorming on async streams
Oct 7, 2015 (Design Review)
Preparatory Notes on Records and Pattern Matching for Oct 7, 2015 Design Review