Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

English has Subject-verb-object word order, not object-verb-subject. That's why x is the first word in x = 2+2


> English has Subject-verb-object word order, not object-verb-subject

Imperative programming corresponds to the imperative moodin English, where English normally has verb-object word order with the subject (the entity being commanded) ommitted. The subject of the command to set the value of x to the result of the addition of two and two is the computer/runtime running the code, not the variable x which is the direct object.

English has SVO order for declarative sentences, which correspond to declarative programmig, which tends to feature definition or binding rather than mutating assignment.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: