r/javascript • • Mar 30 '18

TensorFlow.js

https://js.tensorflow.org/
471 Upvotes

101 comments sorted by

View all comments

Show parent comments

6

u/SamSlate Mar 30 '18

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.

5

u/[deleted] Mar 30 '18

Doesn’t typescript have the ability to read jsdoc style comments as well? Thought I remembered hearing that on a podcast a while back

1

u/[deleted] Mar 31 '18

Yes, it does.