Re: [go-nuts] what's the max length of an identifier

2017-04-10 Thread Rob Pike
No, it's much older than that. https://en.wikipedia.org/wiki/Lions%27_Commentary_on_UNIX_6th_Edition,_with_Source_Code -rob On Mon, Apr 10, 2017 at 7:23 AM, Konstantin Khomoutov < flatw...@users.sourceforge.net> wrote: > On Mon, 10 Apr 2017 09:04:39 -0500 > Sam Whited wrote: > > > On Sun, Apr

Re: [go-nuts] what's the max length of an identifier

2017-04-10 Thread Konstantin Khomoutov
On Mon, 10 Apr 2017 09:04:39 -0500 Sam Whited wrote: > On Sun, Apr 9, 2017 at 5:49 PM, Rob Pike wrote: > > To answer your question about creat, ken named it. Why does no one > > ask about aretu? > > I'll bite: what's up with aretu? Jugding from Rob's involvement with Plan 9, I googled and foun

Re: [go-nuts] what's the max length of an identifier

2017-04-10 Thread Sam Whited
On Sun, Apr 9, 2017 at 5:49 PM, Rob Pike wrote: > To answer your question about creat, ken named it. Why does no one ask about > aretu? I'll bite: what's up with aretu? —Sam -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from t

Re: [go-nuts] what's the max length of an identifier

2017-04-09 Thread Rob Pike
To answer your question about creat, ken named it. Why does no one ask about aretu? -rob On Sun, Apr 9, 2017 at 3:48 PM, Rob Pike wrote: > It was 6, a holdover from FORTRAN because it used (in effect) the > FORTRAN linker. That number was just the number that of initial bytes that > had to be

Re: [go-nuts] what's the max length of an identifier

2017-04-09 Thread Rob Pike
It was 6, a holdover from FORTRAN because it used (in effect) the FORTRAN linker. That number was just the number that of initial bytes that had to be unique. x12345 and x123456 were the same identifier. Case might be ignored too. -rob On Sun, Apr 9, 2017 at 1:43 PM, Tom Limoncelli wrote: >

Re: [go-nuts] what's the max length of an identifier

2017-04-09 Thread Tom Limoncelli
Did the limit in C used to be 5 characters? That would explain "creat()". (That's a bit of trivia I've always wondered about) Tom On Wed, Apr 5, 2017 at 9:16 AM, Ian Lance Taylor wrote: > On Wed, Apr 5, 2017 at 3:57 AM, Jan Mercl <0xj...@gmail.com> wrote: >> On Wed, Apr 5, 2017 at 12:23 PM w

Re: [go-nuts] what's the max length of an identifier

2017-04-05 Thread Ian Lance Taylor
On Wed, Apr 5, 2017 at 3:57 AM, Jan Mercl <0xj...@gmail.com> wrote: > On Wed, Apr 5, 2017 at 12:23 PM wrote: > >> But i don't find such specification for Golang.Is there any limit on the >> length of an identifier in Golang? > > The lack of a specified limit implies no limit other than resources >

Re: [go-nuts] what's the max length of an identifier

2017-04-05 Thread Jan Mercl
On Wed, Apr 5, 2017 at 12:23 PM wrote: > But i don't find such specification for Golang.Is there any limit on the length of an identifier in Golang? The lack of a specified limit implies no limit other than resources available to the compiler and/or the program. -- -j -- You received this m

[go-nuts] what's the max length of an identifier

2017-04-05 Thread Wei . Xiao
For C language, ANSI C recognizes only the first 32 characters in a name. But i don't find such specification for Golang. Is there any limit on the length of an identifier in Golang? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe