MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/889h93/tensorflowjs/dwk9yzb/?context=3
r/javascript • u/deathmood • Mar 30 '18
101 comments sorted by
View all comments
Show parent comments
6
what can you do with type you can't with vanilla? (serious question)
82 u/aaaqqq Mar 30 '18 refactor large code bases with impunity 1 u/ProcrastinatingNow Mar 30 '18 You could technically do that with flow. But seeing as you have transpile whether you use flow or TS, I guess it’s down to preference.Edit: actually I forgot that flow supports type hints in comments. So you might be able to get away with vanilla JS but static type analysis. 3 u/sethetter_ Mar 31 '18 Personally, the choice of TypeScript over Flow is mostly due to a more developed community, better tooling, more consistently defined types across many open source libraries, etc. Flow is amazing, but tooling and community are incredibly important.
82
refactor large code bases with impunity
1 u/ProcrastinatingNow Mar 30 '18 You could technically do that with flow. But seeing as you have transpile whether you use flow or TS, I guess it’s down to preference.Edit: actually I forgot that flow supports type hints in comments. So you might be able to get away with vanilla JS but static type analysis. 3 u/sethetter_ Mar 31 '18 Personally, the choice of TypeScript over Flow is mostly due to a more developed community, better tooling, more consistently defined types across many open source libraries, etc. Flow is amazing, but tooling and community are incredibly important.
1
You could technically do that with flow. But seeing as you have transpile whether you use flow or TS, I guess it’s down to preference.
Edit: actually I forgot that flow supports type hints in comments. So you might be able to get away with vanilla JS but static type analysis.
3 u/sethetter_ Mar 31 '18 Personally, the choice of TypeScript over Flow is mostly due to a more developed community, better tooling, more consistently defined types across many open source libraries, etc. Flow is amazing, but tooling and community are incredibly important.
3
Personally, the choice of TypeScript over Flow is mostly due to a more developed community, better tooling, more consistently defined types across many open source libraries, etc. Flow is amazing, but tooling and community are incredibly important.
6
u/SamSlate Mar 30 '18
what can you do with type you can't with vanilla? (serious question)