A confusing expression?

Jason Spencer spencer8 at sbcglobal.net
Mon Aug 2 00:01:03 PDT 2010


I'm just trying to figure out what the error would be, exactly.  That a
programmer, knowing the language specification, obeyed it and wrote an
expression using the shortest syntax?

Rhetoric aside, the result is not unambiguous, it just requires that the
reader understand precedence.  That's an arguably good thing in any
case.

I could also make a similar argument that allowing operator overloading
might be confusing and so should be disallowed.  It's just an
unfortunate fact that programming requires some attention to detail.


More information about the Digitalmars-d-learn mailing list