DIP19: Remove comma operator from D and provision better syntactic support for tuples
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Sep 24 08:29:53 PDT 2012
On 9/24/12 11:23 AM, Eldar Insafutdinov wrote:
> On Monday, 24 September 2012 at 14:52:21 UTC, Steven Schveighoffer wrote:
>> Without any research or investigation, what about using a different
>> set of delimiters for tuples? Like {1,2,3}
>
> .... and exactly the syntax I was going to propose!
Assume you had this syntax working today. So instead of writing
"tuple(a. b. c)" you write "{ a, b, c }". To what extent would your code
be better? (Honest question. Don't forget that adding the => syntax for
lambda /did/ make for better code.)
Andrei
More information about the Digitalmars-d
mailing list