I haven't posted anything about Rome in a while so here is what I worked on this evening. These are more error messages. It's obviously not all I'm working on but it's the easiest thing to tweet and discuss.
-
Show this thread
-
I have developed a vendetta against poor error messages. I have discovered that validating input like: function isValid(input: string): boolean; Is almost always bad. function getInvalidRange(input: string): undefined | [number, number]; Is way better.
2 replies 3 retweets 25 likesShow this thread -
Replying to @sebmck
So if name is "hey/ho/Lets/go", it first errors on first /, I prepend @ then it errors on second /, I remove it then it errors on L, ... then on last /, ... etc. Wouldn't it be better if it returned "void | Array<[n, n]>" so I could see all the errors at once?
1 reply 0 retweets 0 likes
Yeah it would be better. My tweet was a simplification and Rome does produce as many errors as possible instead of bailing on the first.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 