Use in Other Languages
Ruby and Perl use $_
as a special variable described as the “default input and pattern matching space” — any output defaults to that variable, and may be omitted. In Perl, @_
is a special array variable that holds the arguments to a function.
In some languages with pattern matching, such as Standard ML, OCaml, and Haskell, the pattern _
matches any value, but does not perform binding.
In the interactive Python interpreter, the special variable _
holds the result of the previous evaluation.
Read more about this topic: Underscore, Usage in Computing
Famous quotes containing the word languages:
“Wealth is so much the greatest good that Fortune has to bestow that in the Latin and English languages it has usurped her name.”
—William Lamb Melbourne, 2nd Viscount (17791848)