-
Stop it github.com/giltayar/proposal-types-as-comments If you want to use a different language, you're free to do so. JavaScript has ready suffered enough from the Ruby and C# people.
-
…in reply to @rockerest
This proposal is misleading - and I think it's intentionally so - it's called "types as comments". I would vehemently be opposed to strict typing in JS under any circumstances, but "as comments" implies it can simply be ignored, or even stripped from the source.
-
…in reply to @rockerest
This is NOT that. The proposal suggests that types be inlined into the source by using a colon (:) and the type. Removing this junk will require full AST parsing. The intent is not to add on to JavaScript in a simple, additive way; it is to force everyone to use Typescript.