in programming languages putting the type first basically only appears in C and its (ill-born) children. But the reversal of word order like this is also present in norse and slavic languages with the definite article. It's actually the counter-intuitive pattern, and having learned to speak several languages with postfix definite articles and the awkwardness of this does slow down the process of mastering the language. Ultimately it doesn't matter whether you structure a language subject verb object, verb object subject, subject object verb, or whatever, but the Lisp verb object subject pattern is also counterintuitive and foreign to most programmers' native tongues.
But mainly putting the name first and then type afterwards makes it easier to read compound type declaration lists in parameters, as well as in structs, and follows the same pattern as key/value map/dictionaries. The adherence to this type first in C makes those structures also harder to read. On Friday, 21 September 2018 03:08:57 UTC+2, Rob 'Commander' Pike wrote: > > PL/I is unmatched. > > -rob > > > On Fri, Sep 21, 2018 at 10:13 AM Drew Derbyshire <a...@kew.com > <javascript:>> wrote: > >> On Wednesday, September 19, 2018 at 10:30:11 PM UTC-7, Sathish VJ wrote: >>> >>> I've been asked this question a few times and I haven't been able to >>> find an answer. Why does go reverse the order of variable declaration: "i >>> int" vs "int i" >>> >> >> To match PL/I, of course. :-) >> >> -ahd- >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.