Better error messages - from reddit

Basile B. b2.temp at gmx.com
Mon Mar 4 15:12:59 UTC 2019


On Monday, 4 March 2019 at 14:50:11 UTC, Adam D. Ruppe wrote:
> One of the reddit comments posted this link:
>
> https://elm-lang.org/blog/compiler-errors-for-humans
>
> Wow, those error messages are MUCH better than D has. Want my 
> opinion on the best thing D should change for productivity? 
> Completely overhaul the error messages.
>
> The formatting in the link is nice, but what really wins is how 
> it gives relevant details. "Missing age field" and "Html and 
> String mismatch in array" sum up what it said - and I wish we 
> had that in D too.
>
> How many template constraint messages would be nice if it just 
> said "missing popFront" instead of 40 lines of overload failed 
> spam?
>
> oh yeah that would be nice.

Among one of them:

https://issues.dlang.org/buglist.cgi?component=dmd&keywords=diagnostic%2C%20&keywords_type=allwords&list_id=225094&product=D&query_format=advanced&resolution=---


More information about the Digitalmars-d mailing list