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:
“It is time for dead languages to be quiet.”
—Natalie Clifford Barney (18761972)
Related Subjects
Related Phrases
Related Words