2 ms·
"In statically-typed languages, it is typical to define a type called Player containing two floats representing the x,y position. In a dynamically-typed languag
by dllthomas 12y ago
"In statically-typed languages, it is typical to define a type called Player containing two floats representing the x,y position. In a dynamically-typed language, it is typical to just use a map and store the position as key-value pairs."
What would you say the latter buys you?
I'm not saying I don't see any advantages, particularly compared to practices in some specific statically typed languages, but I think that clarifying this would be useful to everyone in this discussion.