3 ms·
Seems like all of the new features have been available in Flow for quite a while now.
by seattle_spring 10y ago
Seems like all of the new features have been available in Flow for quite a while now.
- manojlds 10y agoFlow is not a language
- tomatsu 10y agohttps://flowtype.org/ https://flowtype.org/ function bar(x): string { That's not JavaScript.
- thejameskyle 10y agoIf that's too much you can also do: function bar(x) /* : string */ { No compiling necessary
- ygra 10y agoI'm fairly sure it has a grammar.
- raphinou 10y agoTypescript seems to get a lot more attention (at least on HN). How does Flow progress? How is the community around it? I'm curious to know more as an external to both projects.
- icholy 10y agoThe new type system features are: keyof, lookup types, and mapped types. Does flow have even one of these?
- seattle_spring 10y ago$Keys<> for keyof, $MapObj<> for mapped types. They are sorely missing lookup types though.
- curveship 10y agoI can't seem to find any info online about $MapObj<>? I searched the docs, google ... nuthin'. Am I just missing something?
- seattle_spring 10y agoApologies, it's $ObjMap. And it's unfortunately not in the documentation, which could admittedly be improved.
- jauco 10y agoGoogling for mapobj doesn't give me any results. Can you point to some documentation on these?
- deleted 10y ago[deleted]