It's a mistake to ignore the customer
Posted Dec 7, 2012 15:01 UTC (Fri) by
david.a.wheeler (guest, #72896)
In reply to:
It's a mistake to ignore the customer by dvdeug
Parent article:
GNU Guile 2.0.7 released
Poster said:
You're adding syntactical complexity. You keep referring to Python, which has a rule "There should be one--and preferably only one--obvious way to do it."
Is 'x okay? After all, that's just a syntactic complexity for (quote x). I'm proposing another abbreviation for a common case.
Funny you should mention Python.
Python, of course, already has two representations for arithmetic operations, prefix and infix, if you want to create types that support infix operators. The Python infix operators are simply an abbreviation for the prefix operators, when you use them this way, e.g., infix "+" is an abbreviation for "__add__".
See the Python special names for more.
Many people are unaware that Python supports prefix notation in this case, because the infix notation is what users expect and want to use.
(
Log in to post comments)