[RFC] Unclear error messages #197
Labels
semantics.interpreter
Any issue relating to changing the semantics of interpreter code.
semantics
Generic label for semantics issues. All semantics issues should have this tag.
Milestone
Have this code:
And see it run:
The error in this program is that the method aimed for is
Time#millisecond
, as there exists noTime#milliseconds
(with a trailings
).The error message makes it clear that there is no variable or method
milliseconds
, – but for2018-06-08 16:52:57:Time
? At least to me, it seems very unlikely that2018-06-08 16:52:57:Time
would have any variables or methods at all. My point is that I believe usingto_s
in this situation can be very unclear.Something like this would be good:
The text was updated successfully, but these errors were encountered: