News for hackers. Stuff that matters.
Re:Ohm – A library and language for building parsers, interp... by dw-im-here on Sunday March 28, 2021 @08:58AM (#26609965)
You're confusing strong and static typing (javascript has neither). In more sophisticated languages such as scala, C# or haskell you can let the compiler infer the types for you, and you can then ask your IDE which type that is. This way you don't need to type out all the boilerplate, you get to see what a functions signature is, and you get compiler errors rather than runtime errors.
Re:Ohm – A library and language for building parsers, interp... by emteycz on Sunday March 28, 2021 @09:13AM (#26610059)
Welcome to TypeScript.