> Then Perl isn't your forte. Perl was designed with the human mind and natural languages in mind - neither of which are consistent or orthogonal.
sorry thats a cheap argument. A natural language is not neccesarily inconsistent. Maybe you think this because your an English speaker, but I know plenty of languages which are far more consistent and orthogonal than English.
And if you read the whole thread, you will see that the behaviour of push depends on the prototype interface, which is surely not modelled after a human language!
| [reply] [Watch: Dir/Any] |
Even fairly regular natural languages (Latin, for instance) tend to have large numbers of irregularities, tending to cluster around the most commonly used words/concepts.
English is, of course, a particularly non-standardized language, but it is, as the poster suggests, modeled after English. Specifically, the "default to '$_'/'@_'" functionality is modeled after default pronouns in English, and is certainly a key concern of this thread.
The "then perl isn't your forte" was kind of a cheap shot, though.
I'm not sure how non-orthogonal it is for a built-in to choose not to default to $_, especially given that most of the built-ins that do default are unary, to my knowledge.
for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";
| [reply] [Watch: Dir/Any] [d/l] |
| [reply] [Watch: Dir/Any] |
Maybe you think this because your an English speaker, but I know plenty of languages which are far more consistent and orthogonal than English.
Well, I'm not a native English speaker, but Larry Wall certainly is. And if any particular natural language was used to model Perl after, it was English, and not a more consistent and orthogonal language.
| [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |