Menu

#33 ==> binds more tightly than +

open
nobody
None
5
2008-06-02
2008-06-02
Anonymous
No

Hi,

How tightly should the ==> operator bind? For example the following code will fail:

:-) 1 ==> 1 + 1;
MISHAP : Integer needed
OBJECT : ( 1 ==> 1 )
ORIGIN : origin
LINE NO. : 1
PHASE : Evaluation
Resetting input and resuming execution

Earlier versions give a ClassCastException.

The question is should it work "as expected" and give a result of:

:-) 1 ==> 1 + 1;
There is 1 result
( 1 ==> 2 );

Or should we continue to require:

:-) 1 ==> ( 1 + 1 );
There is 1 result
( 1 ==> 2 )

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.