The stately := operator feature proposal

Byron Heads byron.heads at gmail.com
Thu May 30 07:41:08 PDT 2013


On Thursday, 30 May 2013 at 14:27:13 UTC, Russel Winder wrote:
> On Thu, 2013-05-30 at 15:54 +0200, Andrej Mitrovic wrote:
>> On 5/30/13, MrzlganeE <bulletproofchest at gmail.com> wrote:
>> > I hate you all, and with this, I exit the D community
>> >
>> > The only reason I was here was I dreamed that I could get a
>> > couple of features
>> 
>> This is the guy that trolls in #d on freenode under the name 
>> of Ndit.
>> He describes a problem, and then screams how D is so much 
>> worse than
>> other languages because of problem X, offering no backup 
>> evidence. And
>> every day he comes up with some new complaint. I don't think 
>> we should
>> take him seriously at all.
>
> I still like:
>
> 	x := 1
>
> for a declaration and initialization with type inference.


Could be used for assigning from tuples.

iVal, sVal := returnsIntAndString();

would have to decide on how to handle this
x := 1;
x := y * 7;  // error or assignment?

more of an issue with tuples then single lvalues










More information about the Digitalmars-d mailing list