C++ UFCS update
wobbles via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 24 00:46:40 PST 2016
On Wednesday, 24 February 2016 at 07:23:03 UTC, Suliman wrote:
> On Wednesday, 24 February 2016 at 07:19:02 UTC, Walter Bright
> wrote:
>> On 2/23/2016 12:35 PM, Ola Fosheim Grøstad wrote:
>>> [...]
>>
>> Hardly. ! is not an overloadable operator in D, and ! has no
>> binary operator meaning other than for template argument
>> lists. I.e. it is not "reuse" at all.
>>
>> Furthermore, iostreams' use of << is neither thread-safe nor
>> exception-safe, though its designer could be forgiven because
>> iostreams predates both concepts. The only interesting thing
>> about iostreams is why it wasn't deprecated 20 years ago,
>> despite being ugly, not thread-safe, not exception-safe, and
>> slow.
>
> Could you add to D operators like AND OR etc instead of && ||.
> Words are more readable.
It's a matter of taste I think.
I find 'and's and 'or's less readable than && and ||.
I suspect that's because I'm used to looking at them.
More information about the Digitalmars-d
mailing list