7 ms·
many new language put type in last part of declaration. rust, go, typescript, and other
by degurechaff 6y ago
many new language put type in last part of declaration. rust, go, typescript, and other
- samatman 6y agoEverything old is new again! The style dates back to Pascal. I think it's better, personally, and that might be because Pascal was my first programming language, but I don't care, I'm just happy it's back in fashion. As a side note, I was quite sure that it dated back to Algol 60, but looked it up for this comment, and nope! Type came before variable.