Skip to content

Commit 339b02a

Browse files
jribenikitabobko
authored andcommitted
Update underscore-for-unused-parameters.md
Added Go to the list of other languages. Go's behavior is very similar to the behavior in this proposal. closes #115
1 parent f61f615 commit 339b02a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proposals/KEEP-0055-underscore-for-unused-parameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Also an IDE quickfix is expected that turns unused declaration's name to `_`.
8787
without special treatment in the language
8888
- It seems that the same semantic may be applied in future versions of Java.
8989
See [related message](http://mail.openjdk.java.net/pipermail/lambda-dev/2013-July/010670.html).
90+
- Go uses `_` as the [blank identifier](https://golang.org/ref/spec#Blank_identifier), ignoring all declarations of and assignments to `_`.
9091

9192
## To be done in the future
9293
The same trick could also be applied to the named functions.

0 commit comments

Comments
 (0)