« Anders On C# 6.0 at BUILD 2013 | Main | Immutable Isolated Types Likely in Future C# »

November 27, 2013

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8345242f069e2019b01b80b50970c

Listed below are links to weblogs that reference “In” Parameters Proposal for C# 6.0:

Comments

Barry Kelly

I don't like it. I was writing a long comment based on my experiences with Delphi, a language without a C++-style const, but with 'const' parameters that were introduced specifically to solve this problem, but the comment got too long. I'll try to summarize.

Basically: nobody will know whether to use it or not, and it will end up polluting APIs, split between those who use it because they think it communicates semantic intent, those who think it's faster, and those who use it like you probably think it should be used - for performance critical ops on big value types. It only applies to value types. The guarantees about fewer copies aren't very strong when so many operations may force a copy. It will introduce a notion of constness in C# expressions that the language has never had before (this will primarily be reflected in error messages).

Wes

Immutable and isolated is coming to C#. At least, the in parameter doesn't propagate like C++ const or produce as many errors. It's primary benefit is with large structs.

The comments to this entry are closed.

My name is Wesner Moise. I am a software entrepreneur developing revolutionary AI desktop applications. I worked as a software engineer in Microsoft Excel group for six years during the 1990s. I worked on PivotTables and wrote the most lines of code in Excel 97-- about 10 times the median developer. I have a Harvard BA in applied math/computer science and a UCLA MBA in technology entrepreneurship. I am a member of the Triple Nine Society, a 99.9 percentile high-IQ society.

December 2013

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31