Re: [go-nuts] Re: why does go reverse the order of name and type? "i int" vs "int i"

2018-09-21 Thread 'Thomas Bushnell, BSG' via golang-nuts
On Fri, Sep 21, 2018 at 11:07 AM Louki Sumirniy < louki.sumirniy.stal...@gmail.com> wrote: > in programming languages putting the type first basically only appears in > C and its (ill-born) children. > Like that's literally wrong. I prefer Go's order, which borrows from Pascal. But C's order is

Re: [go-nuts] Re: why does go reverse the order of name and type? "i int" vs "int i"

2018-09-21 Thread Louki Sumirniy
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 seve

Re: [go-nuts] Re: why does go reverse the order of name and type? "i int" vs "int i"

2018-09-20 Thread Rob Pike
PL/I is unmatched. -rob On Fri, Sep 21, 2018 at 10:13 AM Drew Derbyshire 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 de

[go-nuts] Re: why does go reverse the order of name and type? "i int" vs "int i"

2018-09-20 Thread Drew Derbyshire
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 rece

[go-nuts] Re: why does go reverse the order of name and type? "i int" vs "int i"

2018-09-20 Thread Volker Dobler
On Thursday, 20 September 2018 07:30:11 UTC+2, Sathish VJ wrote: > > [...] Why does go reverse the order of variable declaration > It doesn't. C and C++, Java, C#, etc are reversed. V. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubsc

[go-nuts] Re: why does go reverse the order of name and type? "i int" vs "int i"

2018-09-20 Thread Agniva De Sarker
Here is your answer - https://tip.golang.org/doc/faq#declarations_backwards On Thursday, 20 September 2018 11:00:11 UTC+5:30, 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 in