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
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
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
>
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