digitalmars.D - Let us talk about error messages
- qznc (3/3) Aug 10 2016 Rust changed their error message format:
- Walter Bright (3/6) Aug 10 2016 There are some good ideas there. One thing I've idly thought about is to...
- Kagamin (4/13) Aug 11 2016 It would be good enough if the compiler provided the reason for
- Seb (11/14) Aug 10 2016 Yes, please. Hard to understand/confusing error messages were
- jmh530 (5/8) Aug 10 2016 Looks pretty.
- Wyatt (7/10) Aug 11 2016 I'm pretty fond of some of the stuff Elm is doing, too. Like so:
- Walter Bright (3/5) Aug 11 2016 I agree too much verbosity can be verbal diarrhea to a regular user of t...
Rust changed their error message format: https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html Inspiration for D?
Aug 10 2016
On 8/10/2016 11:28 AM, qznc wrote:Rust changed their error message format: https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html Inspiration for D?There are some good ideas there. One thing I've idly thought about is to include a clickable link to the relevant section in the spec.
Aug 10 2016
On Wednesday, 10 August 2016 at 19:20:00 UTC, Walter Bright wrote:On 8/10/2016 11:28 AM, qznc wrote:It would be good enough if the compiler provided the reason for an error in any form, currently it sounds like "can't work", see e.g. https://issues.dlang.org/show_bug.cgi?id=9626Rust changed their error message format: https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html Inspiration for D?There are some good ideas there. One thing I've idly thought about is to include a clickable link to the relevant section in the spec.
Aug 11 2016
On Wednesday, 10 August 2016 at 18:28:00 UTC, qznc wrote:Rust changed their error message format: https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html Inspiration for D?Yes, please. Hard to understand/confusing error messages were ranked among the three top things that people bother with D (the other things is still the license of DMD) in this recent slant [1]. small rant (from current discussions at Phobos): we should also remove all the silent assert(0) in Phobos that come without any error message, but the segfault. That's a very cheap way to improve the UX. [1] https://www.slant.co/topics/5984/~productivity-enhancing-well-designed-and-concise-rather-than-just-popular-or-time-tested-programming-la
Aug 10 2016
On Wednesday, 10 August 2016 at 18:28:00 UTC, qznc wrote:Rust changed their error message format: https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html Inspiration for D?Looks pretty. I remember some discussion about cleaning up error messages when templates don't match. That's probably the most common ugly-looking message I get.
Aug 10 2016
On Wednesday, 10 August 2016 at 18:28:00 UTC, qznc wrote:Rust changed their error message format: https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html Inspiration for D?I'm pretty fond of some of the stuff Elm is doing, too. Like so: https://pbs.twimg.com/media/CiuJyriXAAEiZnd.jpg:large https://pbs.twimg.com/media/CivQW5kUYAAi4SP.jpg:large Some people will bitch about the verbosity, but that sort of thing is GREAT for people just getting into the language. -Wyatt
Aug 11 2016
On 8/11/2016 11:30 AM, Wyatt wrote:Some people will bitch about the verbosity, but that sort of thing is GREAT for people just getting into the language.I agree too much verbosity can be verbal diarrhea to a regular user of the compiler, but would be helpful to a new user. I expect a switch would be necessary.
Aug 11 2016