> `name: type` is a lot better than `type name`
This is highly subjective. I find the latter to be far more readable. Reading a variable name knowing it's type makes more sense.
This is highly subjective. I find the latter to be far more readable. Reading a variable name knowing it's type makes more sense.
One thing for the "type before name" camp is that you don't have to use a keyword like "let" or "function" when declaring a function, but on the other hand you're going to introduce a keyword anyways if you add type inference.