Linguists shouldn't pretend be competent designers of computer languages. Dear god.
Sure, "verb noun" reads better in English. Who gives a shit? We're not writing novels and prose, we're writing math and algorithms.
noun->verb allows for significantly more powerful programming tools, e.g. object introspection and code completion inside of an editor. The problems I run into while writing code are not "does this sound good in English?" but more "I'm working on some code I haven't seen before, what the hell is this parameter's object for and what does it do?"
When your code puts the verb as the primary element like an imperative language does you can easily look at a verb but that's it. Without overloading, a single verb works on only a single specific form of object, which makes it even more worthless. Looking at all verbs that affect a particular object is much harder (especially when the verbs are used in a dynamic language where the verbs' parameters aren't tagged with object types).
Even if the verb-first is just syntactical "sugar" for noun->verb style of syntaxes -- that is, the verbs are still attached directly to the objects in the code structure -- putting the verb first just kills code completion. I type out a verb and then my editor can't do anything more to help me, other than maybe list out parameters. With the noun first, the editor can helpfully then show me all the possible verbs on that noun. Can't remember the exact spelling of the verb, or are you not entirely sure if the verb you want already exists? You better damn well hope your language puts the noun first. Otherwise, you better not mind wasting oodles of time and effort grepping source code and reading through (likely completely deficient) code documentation.
Re: indirect object syntax (was Re: Revising the OO docs - take 2)
Posted Jul 14, 2011 23:10 UTC (Thu) by nix (subscriber, #2304)
[Link]
Linguists shouldn't pretend be competent designers of computer languages. Dear god.
We could call this the Perl Lesson.
Re: indirect object syntax (was Re: Revising the OO docs - take 2)
Posted Jul 15, 2011 8:17 UTC (Fri) by janneke (subscriber, #15012)
[Link]
Linguists shouldn't pretend be competent designers of computer languages. Dear god.
We could call this the Perl Lesson.
With someone creating Perl [or php ftm] not anything to do I
don't think, the lesson has. Neither at what someone does
claiming to be an authority, it has. At persuading many people
to choose one of their languages, the real computer language
designers apparently failed.
Re: indirect object syntax (was Re: Revising the OO docs - take 2)
Posted Jul 16, 2011 11:54 UTC (Sat) by jengelh (subscriber, #33263)
[Link]
>Linguists shouldn't pretend be competent designers of computer languages.
Neither should computer language designers pretend to know all linguistics, or having a narrow view that just encompasses indoeuropean languages. For one, Japanese is basically /V$/ and would match the OV style that is being criticized in the mail. (Of course my interjection does not consider the argument list yet.. that does go against /V$/)