January 30, 2019
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!
January 30, 2019
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)
January 30, 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.
1 2
Next ›   Last »