- Notifications
You must be signed in to change notification settings - Fork79
docs: add %checks and T is x#51
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Hi@Bjeaurn. This feature is not unique to Flow, as TypeScript has an equivalent (and even more advanced/useful): I'd happily accept a description/comparison of both features into the readme. |
This kind of comments make this project lose all its credibility, just FYI |
slikts commentedJun 18, 2019
Is the comment inaccurate? If so, you could elaborate |
They do the same thing |
niieani commentedJun 20, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
They don't do the same thing@FezVrasta. You can't use Below is one really useful example taken from the TypeScript's library definition ( interfaceArray<T>{filter<SextendsT>(callbackfn:(value:T,index:number)=>value isS):S[];} This makes is possible refine the type of an Array by filtering it. You can't model this with Additionally, I apologize for not being clear in my first comment, but my intention is completeness, not bias against any of the two technologies. |
How can you say the The Flow definition seems way more accurate, since it allows to return |
niieani commentedJun 20, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
That's not the meaning of The difference is in the fact that such defined Here's an example comparing the two in respective playgrounds:TypeScript vsFlow All in all,
The two reasons above make TypeScript's |
No description provided.