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:
“I am always sorry when any language is lost, because languages are the pedigree of nations.”
—Samuel Johnson (17091784)
Related Subjects
Related Phrases
Related Words