Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-31 Thread grauzone
justme wrote: grauzone Wrote: bearophile wrote: BCS: A though on the comma operator: if the comma operator were defined to give a tuple type and be implicitly castable to any suffix of it's self, then you could get both the comma expression usage that Walter wants as well as all the fun thing

Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-30 Thread BCS
I believe he could replace comma operator with AOC (Any Other Character) operator: just replace comma with "something" which is not yet used. Choose some fancy-looking Unicode character that no one will really use but the compiler itself to generate intermediate code. If you don't expect it

Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-30 Thread bearophile
Don: > I'd recommend at least two years of bug-fixes and library > development (and toolchain issues), before we even think about more > features. There are two other important thing that can be done in that stabilizing period: 1) find where are the D2 design mistakes and invent better ways to d

Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-30 Thread Don
Denis Koroskin wrote: On Wed, 30 Dec 2009 15:41:58 +0300, justme wrote: grauzone Wrote: bearophile wrote: > BCS: >> A though on the comma operator: if the comma operator were defined to give >> a tuple type and be implicitly castable to any suffix of it's self, then >> you could get both t

Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-30 Thread Denis Koroskin
On Wed, 30 Dec 2009 15:41:58 +0300, justme wrote: grauzone Wrote: bearophile wrote: > BCS: >> A though on the comma operator: if the comma operator were defined to give >> a tuple type and be implicitly castable to any suffix of it's self, then >> you could get both the comma expression u

Re: Comma expression as tuple operator [was Tuples, C#, Java, language design]

2009-12-30 Thread Johan Granberg
BCS wrote: > Hello justme, > >> bearophile Wrote: >> >>> C# will probably not follow the route of stagnation of Java for some >>> more time, thanks to Mono too. I don't like that string interpolation >>> syntax because it looks unsafe, and that design of tuples can be >>> improved, but they are

Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-30 Thread justme
grauzone Wrote: > bearophile wrote: > > BCS: > >> A though on the comma operator: if the comma operator were defined to give > >> a tuple type and be implicitly castable to any suffix of it's self, then > >> you could get both the comma expression usage that Walter wants as well as > >> all the

Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-30 Thread Denis Koroskin
On Wed, 30 Dec 2009 09:29:22 +0300, Don wrote: justme wrote: grauzone Wrote: BCS wrote: Hello justme, bearophile Wrote: C# will probably not follow the route of stagnation of Java for some more time, thanks to Mono too. I don't like that string interpolation syntax because it looks u

Re: Comma expression as tuple operator [was Tuples, C#, Java, language design]

2009-12-30 Thread grauzone
bearophile wrote: BCS: A though on the comma operator: if the comma operator were defined to give a tuple type and be implicitly castable to any suffix of it's self, then you could get both the comma expression usage that Walter wants as well as all the fun things that tuple expressions give.

Re: Comma expression as tuple operator [was Tuples, C#, Java, language design]

2009-12-30 Thread bearophile
BCS: > A though on the comma operator: if the comma operator were defined to give > a tuple type and be implicitly castable to any suffix of it's self, then > you could get both the comma expression usage that Walter wants as well as > all the fun things that tuple expressions give. D2 has enou

Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-30 Thread Don
justme wrote: grauzone Wrote: BCS wrote: Hello justme, bearophile Wrote: C# will probably not follow the route of stagnation of Java for some more time, thanks to Mono too. I don't like that string interpolation syntax because it looks unsafe, and that design of tuples can be improved, but

Re: Comma expression as tuple operator [was Tuples, C#, Java, language

2009-12-30 Thread justme
grauzone Wrote: > BCS wrote: > > Hello justme, > > > >> bearophile Wrote: > >> > >>> C# will probably not follow the route of stagnation of Java for some > >>> more time, thanks to Mono too. I don't like that string interpolation > >>> syntax because it looks unsafe, and that design of tuples can

Re: Comma expression as tuple operator [was Tuples, C#, Java, language design]

2009-12-30 Thread grauzone
BCS wrote: Hello justme, bearophile Wrote: C# will probably not follow the route of stagnation of Java for some more time, thanks to Mono too. I don't like that string interpolation syntax because it looks unsafe, and that design of tuples can be improved, but they are listening to programmes

Comma expression as tuple operator [was Tuples, C#, Java, language design]

2009-12-30 Thread BCS
Hello justme, bearophile Wrote: C# will probably not follow the route of stagnation of Java for some more time, thanks to Mono too. I don't like that string interpolation syntax because it looks unsafe, and that design of tuples can be improved, but they are listening to programmes (even if th