5 ms·
when Ruby was up and coming, people compared it to Perl a lot, but I never saw the similarities. I guess they both have first-class regexp. But ruby has very st
by jes5199 3y ago
when Ruby was up and coming, people compared it to Perl a lot, but I never saw the similarities. I guess they both have first-class regexp. But ruby has very standard semantics, almost interchangeable with Python and Javascript in most cases. Perl… like, I would have to look up “how to access a nested array” because its sigils, arrows, and types form such an alien system
- mech422 3y agoIIRC, the comparisons were because Ruby was supposed to be a fully object oriented 'perl-like' language. Even the name was a nod to its Perl based inspiration.
- vidarh 3y agoRuby shares command-line options with Perl, the use of sigils, many of the single character globals. Besides Smalltalk Perl is probably the biggest influence on Ruby, but the Perl influence is more superficial.
- jes5199 3y agoto me, using sigils for scoping rules is a completely different idea from using sigils to declare types