> If the notation were + (a, b) and a __add__ b then people would use the prefix notation more.
Bollocks. In Haskell, you can use (+) a b instead of a + b, but nobody actually does that. The only reason the (+) syntax exists is to make it possible to pass + to a higher-order function.
Posted Dec 13, 2012 1:19 UTC (Thu) by mathstuf (subscriber, #69389)
[Link]
Right, but it's closer to the question: Given:
> (+) a b
and
> a `add` b
as the "only" options, which would be more popular?
It's a mistake to ignore the customer
Posted Dec 13, 2012 1:29 UTC (Thu) by mpr22 (subscriber, #60784)
[Link]
I'd go for option (c) Find the person who is requiring me to use this language clearly designed by either a parodist or a malicious idiot, and require them to explain to me in less than 150 syllables why I have to put up with it.
It's a mistake to ignore the customer
Posted Dec 13, 2012 1:36 UTC (Thu) by mathstuf (subscriber, #69389)
[Link]
Ah, yes. I forgot that option :) . That's how I feel with the class/method names people tend to use in Java… Biggest thing it's missing is a "typedef" equivalent, IMO.
It's a mistake to ignore the customer
Posted Dec 13, 2012 21:17 UTC (Thu) by mirabilos (subscriber, #84359)
[Link]