3 ms·
> I'm giving my opinion. Please understand some people think differently than you and that's fine. What does that mean? Should he have NOT responded to your co
by cuddlecake 7y ago
> I'm giving my opinion. Please understand some people think differently than you and that's fine.
What does that mean? Should he have NOT responded to your comment? Does that then mean that you should have not responded to his comment? Does that mean I should have not responded to your comment? Does that also mean that you shouldn't have made a comment, since Evan directly expressed his thoughts and opinions in his post? Should we stop communicating at all and become Loopless One-Directional Communication Graphs? Who shall be the original Opinion Holder? Adam or Eve?
Anyway.
> Should the compiler also correct the user if they write `#import <set.h>`? Or `open Set`? Or `from Set import `? Again, in my opinion* this is neither relevant nor desirable.
If it can, why not? Why not tell the user: Hey, you've got `xyz`, but you can only do `zyx` with those literals. Having detailed Errors is not a detriment. I remember my first Segmentation Fault in C. Man, I cried.
Programming languages have users, and caring about the User Experience of a language (i.e. Developer Experience, I supposed) is commonly desirable. There is no downside to a good error message, neither for something as trivial as imports, nor for common things like using the wrong key names in a Record.
I make heavy use of types in TypeScript, but the error messages when something is out of order (ever so slightly) is just so brutal at times, with error messages being 20+ lines long, where only the last line might be relevant. I, for one, welcome our helpful error message overlords.
- andrepd 7y ago>What does that mean It was more in response to the downvotes, with are (supposedly) not a disagree button.
- wglb 7y agoDownvotes as disagreement is perfectly ok.
- DanRosenwasser 7y ago> I make heavy use of types in TypeScript, but the error messages when something is out of order (ever so slightly) is just so brutal at times, with error messages being 20+ lines long, where only the last line might be relevant. I, for one, welcome our helpful error message overlords. If you've got examples of cases where we can do better, feel free to file an issue! We want to do better.
- cuddlecake 7y ago> If you've got examples of cases where we can do better, feel free to file an issue! We want to do better Thanks for letting me know.
- cuddlecake 7y agoSaw that you tweeted an example of error log improvements, which is exactly what I meant with the 20+ lines of error messages with only the last one being relevant. Now I just need to wait until Typescript 3.7 trickles down to all my dependencies so I can get that goodness. Sigh. Sigh.