One of Larry's purported factors in the design of Camelia (and by extension, Perl 6) was to appeal to 7 year old girls (and by extension, people new to programming in general).
In addition, another design principle of Perl6 was to make it "less Unix centric". Whereas Perl had s///
and tr///
, Perl 6 retains these but adds subst
and trans
, which is friendlier to new programmers, and self-documenting to some degree.
It seems odd, then, that we still have the grep
operator named so. Even in Perl, grep - as in globally search a regular expression and print - bears little resemblance to what it actually does. It's more of a filter, filtering elements out that do not evaluate True to a given expression.
What then would be it's alternative friendly name? Taking into account these design principles...
- Context Sensitive: A term or symbol might do different things in different context