2 ms·
But the fashion in programming languages (Scala, TypeScript, Python) to write the type behind the variable name has a disadvantage: When writing code an IDE can
by amai 8y ago
But the fashion in programming languages (Scala, TypeScript, Python) to write the type behind the variable name has a disadvantage: When writing code an IDE cannot suggest a variable name based on the type. This is an inconvenience one will notice immediately when you are used to it from programming in Java, where types are defined before the variable name.
- AzzieElbab 8y agoUmmm reassignment is a rare thing in scala
- sime2009 8y agoMost of the time in TS you just rely on type inference and don't write out the type at all.