logo       

[jira] Created: (BOO-494) conditional: alpha < num < beta instread of alpha: msg#00089

lang.boo.devel

Subject: [jira] Created: (BOO-494) conditional: alpha < num < beta instread of alpha < num and num < beta

conditional: alpha < num < beta instread of alpha < num and num < beta
----------------------------------------------------------------------

Key: BOO-494
URL: http://jira.codehaus.org/browse/BOO-494
Project: Boo
Type: New Feature
Components: Compiler
Environment: All
Reporter: Cameron Kenneth Knight


alpha < num < beta would be a handy feature because:

if num is a method, e.g. alpha < Number() < beta, which changes, you would
instead have to do
tmp = Number()
if alpha < tmp and tmp < beta

if num has a long name, it would be more readable.
alpha < SomethingWithAVeryLongName and SomethingWithAVeryLongName < beta
looks a lot worse than
alpha < SomethingWithAVeryLongName < beta

It would also possibly provide optimized IL for this expression.
quoting botty:
ldint32 5
ldarg.s x
dup
blt
hmm
the target it breaks to would have to pop tho
then
ldint32 10
blt

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise