Does this Groovy token '->' have a name or an alias?

Follow this question . Groovy.codehaus.org simply refers to it as a token. Are there unofficial nicknames floating around like "splat" and "bang"?

+4
source share
3 answers

He is unofficially known as the "arrow". I quote this post since 2008 . Although I cannot argue that this is a standard idiom, I have never heard her call anything else (in conversation).

+3
source

In an antlr parser script, it is called a closed block statement.

I do not know a more mature name than "arrow"

+1
source

I heard that it used to be called "Rocket." Also "Fat Rocket" / "Hash Rocket" will be "=>"

But this is more applicable to ruby ​​burn.

0
source

Source: https://habr.com/ru/post/1437679/


All Articles