News for hackers. Stuff that matters.
Re:Porting 30K lines of code from Flow to TypeScript by zukzuk on Monday January 14, 2019 @10:56PM (#18908761)
Nah, there are still some patterns, especially around metaprogramming, that TypeScript doesn't support. One example is the inability to refer to the current class inside a static method. This makes it really awkward to write things like factory methods, which in turn forces you to either resort to copy & paste coding, or fighting with the compiler. See https://github.com/Microsoft/TypeScript/issues/5863 for example.

There are no comments on this comment yet.