On Wed, 8 Aug 2001, Wolfgang Jeltsch wrote:
I totally agree with Gary. In my opinion the unary minus is a anomaly in Haskell which causes a lot of problems while beeing not that useful. For me it is totally okay to use negate x instead of -x.
Gary wrote:
<micro-rant> As long as were trying to clean up a final version of the Haskell 98 report, lets simplify it a little by getting rid of unary minus. It's the only prefix operator in the whole language.
I'd like to add my vote for this. Its removal would result in a nicer language specification, and would remove a obstacle that novice programmers sometimes stumble over. Richard
On Thu, Aug 09, 2001 at 10:12:46AM +1000, Richard Watson wrote:
I'd like to add my vote for this. Its removal would result in a nicer language specification, and would remove a obstacle that novice programmers sometimes stumble over.
Yes, getting a sytax error if I write (x-1)*(-x-1) is a real stumbling block. Yours, Florian.
participants (2)
-
Florian Hars -
Richard Watson