2 ms·
> Type names after variable or before? When you think about declaring a variable, do you think about its type of name first? I can't imagine you do the latter b
by thomastjeffery 6y ago
> Type names after variable or before? When you think about declaring a variable, do you think about its type of name first? I can't imagine you do the latter because "Hmm, I need an array of doubles to represent my tensor" is double[][] tensor; and not tensor: double[][].
You can just as equally think of it as, "I need my tensor to be an array of doubles".
That works much more cleanly with type inference, because the type is more of an annotation, and you can drop it without adding the boilerplate word "auto".
> Subjectively ugly and polluted with punctuation symbols that tell you little about their semantics.
Like what?