Re: [go-nuts] History: Does the _ (Blank identifier) trace its history back to VI's or something earlier?

2017-02-21 Thread Rob Pike
Perhaps, but in Go it's just the shortest name that looks meaningless. Nothing inspired it but brevity. -rob On Tue, Feb 21, 2017 at 11:25 AM, Wim Lewis wrote: > If I had to speculate, I'd guess that the use of "_" for an anonymous or > blank identifier in pattern matching and destructuring tr

Re: [go-nuts] History: Does the _ (Blank identifier) trace its history back to VI's or something earlier?

2017-02-21 Thread Wim Lewis
If I had to speculate, I'd guess that the use of "_" for an anonymous or blank identifier in pattern matching and destructuring traces back to Prolog. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop recei

Re: [go-nuts] History: Does the _ (Blank identifier) trace its history back to VI's or something earlier?

2017-02-21 Thread Konstantin Khomoutov
On Tue, 21 Feb 2017 01:16:08 -0800 (PST) "'pfitzsimons' via golang-nuts" wrote: > The _ is used as the https://golang.org/ref/spec#Blank_identifier to > ignore right-hand side values in an assignment > (https://golang.org/ref/spec#Assignments) > > In VI(M) _ is used as a black hole register >

[go-nuts] History: Does the _ (Blank identifier) trace its history back to VI's or something earlier?

2017-02-21 Thread 'pfitzsimons' via golang-nuts
The _ is used as the https://golang.org/ref/spec#Blank_identifier to ignore right-hand side values in an assignment (https://golang.org/ref/spec#Assignments) In VI(M) _ is used as a black hole register http://vimdoc.sourceforge.net/htmldoc/change.html#registers when you want to delete clipboar