Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add objective error quality comparison #36

Open
sibelius opened this issue Jun 7, 2018 · 1 comment
Open

Add objective error quality comparison #36

sibelius opened this issue Jun 7, 2018 · 1 comment

Comments

@sibelius
Copy link

sibelius commented Jun 7, 2018

Flow 66 improved a lot error messages

https://medium.com/flow-type/better-flow-error-messages-for-the-javascript-ecosystem-73b6da948ae2

I think it got better than Typescript

@niieani
Copy link
Owner

niieani commented Jun 7, 2018

It's gotten much better (I use Flow every day), but I still think the errors are much harder to understand than those TypeScript (that one I use during the weekends 🤡).

The main reason, IMO, is the relatively higher complexity of the Flow type system (inference), plus the position of errors is still quite often odd/off. Errors in complex types can be super hard to understand and debug.

Ideally, we'd have some comparison of the same errors in both languages. I'm open to adding another set of files to this repo that shows exactly that. Perhaps we could simply generate those files (maybe with jest snapshots?) so its easy to update them with new versions of both systems.

@niieani niieani changed the title error quality Add objective error quality comparison Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants