3 ms·
Ruby's name was inspired by Perl, but I'm curious to know which language structures you think were inspired by Perl.
by ZenoArrow 10y ago
Ruby's name was inspired by Perl, but I'm curious to know which language structures you think were inspired by Perl.
- joseph 10y agoThe regular expression syntax; sigils on (some) variables; shortcuts like `bar if foo`; optional parenthesis on function calls; `chomp()` and `chop()`; those are just a few things that come to mind.
- cutler 10y agoRead up on Matz's account of how he developed Ruby and what were his influences. Larry Wall was top his list.
- coldtea 10y agoRuby has since forever been described as a cross between Perl and Smalltalk (and some other languages), including by its creator (Matz).