[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Assignment in functional conditionals, any alternative?
- From: Mark Hamburg <mhamburg@...>
- Date: Tue, 06 May 2003 09:03:58 -0700
One thing to watch out for in making assignment an expression:
It would be wise to replace = with := as the assignment operator to avoid
the errors that could come from type "while a = b do" when you meant "while
a == b do".
The last language I designed prohibited "=" for just that reason.
Mark