[–] stephenr 13y ago ↗ Wow, I never knew Ruby's predefined global variables were so cryptically named. (Not a ruby developer)Is there any sane reason it was designed this way (the language I mean, not this fix) [–] dragonwriter 13y ago ↗ ISTR (and I've never had much knowledge of Perl), the magic globals were lifted directly from Perl and were intended to support Perl->Ruby transition.
[–] dragonwriter 13y ago ↗ ISTR (and I've never had much knowledge of Perl), the magic globals were lifted directly from Perl and were intended to support Perl->Ruby transition.
[–] phasevar 13y ago ↗ This should be a part of the Ruby distribution. [–] dragonwriter 13y ago ↗ The English library is part of the Ruby distribution (its part of the standard libraries.)
[–] dragonwriter 13y ago ↗ The English library is part of the Ruby distribution (its part of the standard libraries.)
[–] roopeshv 13y ago ↗ http://perldoc.perl.org/English.html perl has it too. So, you can still write ruby like perl
[–] pre_action 13y ago ↗ I imagine this works about as well as it does in Perl. Not everybody uses it, so you have to know the short-hand variables anyway, but now you've got an entire new set of magic names to learn! Let's all learn two names for everything!
[–] kamaal 13y ago ↗ Asking people to stop stop writing Ruby like Perl is like asking people to stop writing C++ like C.Its impossible to that especially when Ruby is 80% perl.
7 comments
[ 6.4 ms ] story [ 37.7 ms ] threadIs there any sane reason it was designed this way (the language I mean, not this fix)
Its impossible to that especially when Ruby is 80% perl.