English.rb: stop writing Ruby like Perl
github.com
English.rb: stop writing Ruby like Perl
1–8 of 8 posts
Re: English.rb: stop writing Ruby like Perl
#2Wow, 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)
Re: English.rb: stop writing Ruby like Perl
#3This should be a part of the Ruby distribution.
Re: English.rb: stop writing Ruby like Perl
#4Wow, 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)
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.
Re: English.rb: stop writing Ruby like Perl
#5http://perldoc.perl.org/English.html perl has it too. So, you can still write ruby like perl
Re: English.rb: stop writing Ruby like Perl
#6This should be a part of the Ruby distribution.
The English library is part of the Ruby distribution (its part of the standard libraries.)
Re: English.rb: stop writing Ruby like Perl
#7I 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!
Re: English.rb: stop writing Ruby like Perl
#8Asking 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.