[your code here]

bauss jj_1337 at live.dk
Wed Jan 30 11:01:09 UTC 2019


On Wednesday, 30 January 2019 at 02:12:11 UTC, Stefan Koch wrote:
> On Wednesday, 30 January 2019 at 01:53:40 UTC, Adam D. Ruppe 
> wrote:
>> On Wednesday, 30 January 2019 at 00:10:30 UTC, H. S. Teoh 
>> wrote:
>>> Wow.  I can't believe I've been coding in D for so long and 
>>> never knew this. :-D
>>
>> oh i kinda like is. But you shouldn't call things syntax 
>> errors before compiling it yourself!
>
> Well just because it compiles, does not mean it's not an syntax 
> error :o)

I would say it's more of a semantic error if the compiler accepts 
the grammar and it doesn't have any weird grammar construct.

if (X is Y) is a perfectly fine grammar in D, so whatever X and Y 
is and whether they should compile would be up to the semantics 
of D.


More information about the Digitalmars-d mailing list