4 ms·
The Stackoverflow thing you cite is wrong: Ruby doesn't _ that way (IRB, the bundled Ruby REPL, does)—Ruby actually does have special handling for _ as a varia
by dragonwriter 7y ago
The Stackoverflow thing you cite is wrong:
Ruby doesn't _ that way (IRB, the bundled Ruby REPL, does)—Ruby actually does have special handling for _ as a variable, but that's to suppress duplicate definitions n warnings to allow it to be used as a don't-care argument.
I think Python is similar, where it is special-cased in the REPL, not a general language feature.