News for hackers. Stuff that matters.
Re:Announcing TypeScript 2.1 by seattle_spring on Wednesday December 07, 2016 @12:55PM (#13124521)
Seems like all of the new features have been available in Flow for quite a while now.
Re:Announcing TypeScript 2.1 by icholy on Wednesday December 07, 2016 @01:04PM (#13124610)
The new type system features are: keyof, lookup types, and mapped types. Does flow have even one of these?
Re:Announcing TypeScript 2.1 by seattle_spring on Wednesday December 07, 2016 @01:13PM (#13124705)
$Keys<> for keyof, $MapObj<> for mapped types. They are sorely missing lookup types though.
Re:Announcing TypeScript 2.1 by jauco on Wednesday December 07, 2016 @03:20PM (#13125852)
Googling for mapobj doesn't give me any results. Can you point to some documentation on these?
Re:Announcing TypeScript 2.1 by curveship on Wednesday December 07, 2016 @03:32PM (#13125956)
I can't seem to find any info online about $MapObj<>? I searched the docs, google ... nuthin'. Am I just missing something?
Re:Announcing TypeScript 2.1 by seattle_spring on Wednesday December 07, 2016 @06:56PM (#13127329)
Apologies, it's $ObjMap. And it's unfortunately not in the documentation, which could admittedly be improved.
Re:Announcing TypeScript 2.1 by raphinou on Wednesday December 07, 2016 @01:02PM (#13124593)
Typescript 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.
Re:Announcing TypeScript 2.1 by manojlds on Wednesday December 07, 2016 @12:57PM (#13124533)
Flow is not a language
Re:Announcing TypeScript 2.1 by tomatsu on Wednesday December 07, 2016 @01:30PM (#13124867)
https://flowtype.org/

  function bar(x): string {
That's not JavaScript.
Re:Announcing TypeScript 2.1 by thejameskyle on Wednesday December 07, 2016 @02:51PM (#13125618)
If that's too much you can also do:

    function bar(x) /* : string */ {
No compiling necessary
Re:Announcing TypeScript 2.1 by ygra on Wednesday December 07, 2016 @01:30PM (#13124870)
I'm fairly sure it has a grammar.