| Paul Graham often quotes that programs should be readable, and that programs should be for people, not for machines. I think that a lot of people find mixfix syntax much more readable than prefix notation (most mathematicians belong to this class of people...). Let's face it, a + b + c is easier to read than (+ a b c), especially when there are subexpressions and so on. On the other hand I totally agree that when manipulating programs via macros, I should not be bothered with these syntax details which just annoy then. So why not allow both? The prefix notation is the streamlined internal representation, but the user can also choose to employ mixfix notation when writing down Arc programs (of course, he can also choose to just use plain prefix notation). There should be some grammar-based mechanism of associating such syntactic sugar to operators like "if", "+", or your own favourite homegrown operator "magicwand". |