Thread overview | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 01, 2005 Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Let me add my plaintiff plea, based on current practical pain for lack of isnot operator. assert(!(field2 is field)); is just so awkward to write, and ugly to read. |
May 01, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | On Sun, 1 May 2005 15:36:35 +1000, Matthew wrote: > Let me add my plaintiff plea, based on current practical pain for lack of isnot operator. > > assert(!(field2 is field)); > > is just so awkward to write, and ugly to read. Exactly! Surely we are not so pedantic to deny the simplicity of ... assert(field2 isnot field); -- Derek Parnell Melbourne, Australia 1/05/2005 8:41:24 PM |
May 02, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | Matthew wrote:
> Let me add my plaintiff plea, based on current practical pain for lack of isnot operator.
>
> assert(!(field2 is field));
>
> is just so awkward to write, and ugly to read.
>
>
>
>
I agree, we have is (which is nice btw), why not isnot?
|
May 02, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | Matthew wrote:
> Let me add my plaintiff plea, based on current practical pain for lack of isnot operator.
>
> assert(!(field2 is field));
>
> is just so awkward to write, and ugly to read.
>
Count my vote for it.
|
May 02, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | In article <d54edn$u2h$1@digitaldaemon.com>, Mike Parker says... > >Matthew wrote: >> Let me add my plaintiff plea, based on current practical pain for lack of isnot operator. >> >> assert(!(field2 is field)); >> >> is just so awkward to write, and ugly to read. >> > >Count my vote for it. Postin' "me too" like some braindead AOLer. =D Regards, James Dunne |
May 02, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to James Dunne | >>> Let me add my plaintiff plea, based on current practical pain for lack of isnot operator.
>>>
>>> assert(!(field2 is field));
>>>
>>> is just so awkward to write, and ugly to read.
>>>
>>
>>Count my vote for it.
>
>Postin' "me too" like some braindead AOLer. =D
Just to say I agree such an operator would be nice, though "!is" would be fine as well (and look less strange than "isnot" imho).
|
May 02, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to SeeSchloss | In article <d5597d$1m7r$1@digitaldaemon.com>, SeeSchloss says... > >>>> >>>> assert(!(field2 is field)); >> >>Postin' "me too" like some braindead AOLer. =D > >Just to say I agree such an operator would be nice, though "!is" would be fine as well (and look less strange than "isnot" imho). we could also have "!in" that would be consistent with "!is" Ant |
May 02, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | In article <d51pu5$1vju$1@digitaldaemon.com>, Matthew says... > >Let me add my plaintiff plea, based on current practical pain for lack of isnot operator. > > assert(!(field2 is field)); > >is just so awkward to write, and ugly to read. > Count me in too, for the creation of a "isnot" operator. David L. ------------------------------------------------------------------- "Dare to reach for the Stars...Dare to Dream, Build, and Achieve!" ------------------------------------------------------------------- MKoD: http://spottedtiger.tripod.com/D_Language/D_Main_XP.html |
May 02, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | "Matthew" <admin@stlsoft.dot.dot.dot.dot.org> wrote in message news:d51pu5$1vju$1@digitaldaemon.com... > Let me add my plaintiff plea, based on current practical pain for lack of isnot operator. > > assert(!(field2 is field)); > > is just so awkward to write, and ugly to read. For this reason I use x !== y instead of !(x is y). The latter is too hard to read. In some sense it's a pity === didn't stay around since === and !== complement each other nicely. oh well. :-P |
May 02, 2005 Re: Please may we have an isnot? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | Besides "isnot", a "notin" operator would also be nice.
Matthew wrote:
> Let me add my plaintiff plea, based on current practical pain for lack of isnot operator.
>
> assert(!(field2 is field));
>
> is just so awkward to write, and ugly to read.
>
>
|
Copyright © 1999-2021 by the D Language Foundation