[Dlang-internal] How about `and` and `or` like in Python?

Murilo murilomiranda92 at hotmail.com
Tue Oct 1 04:34:59 UTC 2019


On Tuesday, 1 October 2019 at 04:06:17 UTC, Walter Bright wrote:
> On 9/30/2019 8:35 PM, Murilo wrote:
>> On Tuesday, 1 October 2019 at 02:25:11 UTC, Elronnd wrote:
>>> Personally, I think this would make the code less readable; 
>>> the current way creates more of a distinction between 
>>> operators and operands.
>> 
>> But it could be an option, the current way would remain and 
>> this extra way would be added as an option.
>
> C++ does this. Nobody uses it.

Maybe they do and you just don't see it. I would use it. I 
believe that code should be as close to natural language as 
possible, that mindset is what lead Python to being so successful.


More information about the Dlang-internal mailing list