4 ms·
I think this is why Elixir's pipe syntax spoke to me while hacking on it yesterday. It puts the subject first, which has that human-readable bit to it. I've bee
by themartorana 12y ago
I think this is why Elixir's pipe syntax spoke to me while hacking on it yesterday. It puts the subject first, which has that human-readable bit to it. I've been writing code in myriad languages for 15+ years, but that doesn't make me impervious to what seems "obvious" or intuitively "proper" to my brain, organization-wise.
This organization of language in this fashion is English-specific though. I wonder what feels intuitive to non-English (or non-Romantic) speakers - is it OO as well, or something else?
- seanmcdirmid 12y agoAll natural human languages are noun based having subjects and objects (in the POS sense). Verbs never stand alone.
- themartorana 12y agoOf course. I more meant the difference between: "The table is red." and "Red is the color of the table."
- sbov 12y agoSome languages put verbs first though. In which case it seems like functional programming languages might make the most sense to them.
- _asummers 12y agoWhich spoken languages do this, out of curiosity? Edit: https://en.wikipedia.org/wiki/Verb%E2%80%93subject%E2%80%93object https://en.wikipedia.org/wiki/Verb%E2%80%93subject%E2%80%93o... Cool.
- hrjet 12y agoExample of verb first: RTFA :)
- randallsquared 12y agoImplied subject first: [you] read the fine article.
- seanmcdirmid 12y agoFunctional programming isn't just a rearrangement of subjects and verbs....
- deleted 12y ago[deleted]
- richm44 12y agoDive!