3 ms·
The article doesn't mention Perl at all but it did have some direct influences on Ruby. Even Ruby's trailing blocks syntax are an homage to Perl's block list s
by draegtun 4mo ago
The article doesn't mention Perl at all but it did have some direct influences on Ruby.
Even Ruby's trailing blocks syntax are an homage to Perl's block list subroutines:
# first Ruby example in article
users.select { |u| u.admin? }.map(&:email)
# using Perl's block list
map {$_->email} grep {$_->is_admin} @users;