I'm glad throw is now an expression

Steven Schveighoffer schveiguy at gmail.com
Wed May 18 01:08:02 UTC 2022


On 5/17/22 8:47 PM, deadalnix wrote:
> On Tuesday, 17 May 2022 at 22:03:38 UTC, Basile B. wrote:
>> Yes I see [that ST does 
>> more](https://github.com/sublimehq/Packages/blob/master/D/D.sublime-syntax). 
>> It has several other issues. 100% of them are caused by the fact that 
>> they need to keep up to date with the grammar. That's a pity, an old 
>> unproper syntax coloring based on the tokens would work just fine.
> 
> No it would not.
> 
> You just can't provide the same level of support with lexing you can 
> with parsing, this is why we have parsers to begin with.
> 
> This attitude is why tooling is so poor for D to begin with.

libdparse supports the new syntax in question. I'm not sure what more D 
can do. D updated the parser, which is an *official* open-source library 
that implements the parser. It can't make other projects give up their 
NIH parsers.

If someone implemented a D parser in brainfuck, would D have to make 
sure it updated that parser before progressing, just because it's a parser?

-Steve


More information about the Digitalmars-d mailing list