[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: New operators?
- From: Peter Odding <xolox@...>
- Date: Thu, 12 Apr 2007 00:27:04 +0200
Andy Stark wrote:
> An alternative to assignment operators (+=, etc) might be to have a
> shorthand for referring to the variables on the left hand side of the
> assignment. Perhaps one of the unused characters (question mark, say)
> could be used for this. So if we started with:-
>
> longVarName = longVarName + 1
>
> ...we could change it to:-
>
> longVarName = ? + 1
>
> ...and then perhaps ?1, ?2, etc for multiple assignments.
Though I don't see this getting in to the core just yet, I must say this is a
fascinating approach to the problem!
- Peter