|Version||r3 master||Category||Native||Submitted by||Ladislav|
|Summary||Remove /else refinement from IF|
IF is the only conditional function having the /else refinement. No regular Rebol user needs the refinement, because EITHER is cleaner.
If the memory serves me well, it was my "rant" back in R1 time inspiring Carl to define EITHER.
Back to the subject, it turns out that I am not the only Rebol user having this wish, the subject occurred in Rebol SO chat.
either some-condition then-argument else-argument
|Assigned to||n/a||Fixed in||r3 master||Last Update||3-Mar-2014 21:25|
|Yes, I vote to remove it.|
|I agreed to remove it.|
I brought it up in chat, and was in favor of removing it.
I have seen twice discussions with new users where they ask roughly "where is ELSE?" Then they are pulled into a discussion which explains that EITHER is better, and if you wanted Rebol to have an "IF X THEN Y ELSE Z" style of programming, you could...but then IF would take 5 parameters and if you didn't use them all you'd have to write "IF X THEN Y none none"... or your IF would have to take a block, etc.
Somewhere in the discussion it is mentioned that IF has an /ELSE refinement. This doesn't help at all.
What *would* help, I think, would be that if the built-in help for IF led people directly to EITHER and UNLESS. To this end, I was thinking the "See Also" information from the web help (just the list of related functions) should be migrated into the core somehow and provided via HELP.
|Remove it or /else!|
|remove, long standing deprecation which was supposed to be removed. No one uses it, it slows down eval and it's not even clean Rebol.|
|It was just in Rebol 2 to mollify the Rebol 1 users who missed the ELSE function. Good riddance.|
|Fixed in https://github.com/rebol/rebol/pull/185 - ELSE is gone too.|
|3-Mar-2014 21:25||BrianH||Comment : 0004254||Modified||-|
|3-Mar-2014 21:25||BrianH||Fixedin||Modified||=> r3 master|
|3-Mar-2014 21:25||BrianH||Status||Modified||pending => built|
|20-Feb-2014 21:05||BrianH||Comment : 0004254||Added||-|
|20-Feb-2014 21:05||BrianH||Status||Modified||reviewed => pending|
|17-Feb-2014 21:11||BrianH||Status||Modified||submitted => reviewed|
|8-Oct-2013 00:41||abolka||Comment : 0004062||Added||-|
|8-Oct-2013 00:40||Ladislav||Category||Modified||Unspecified => Native|
|8-Oct-2013 00:17||BrianH||Comment : 0004061||Added||-|
|7-Oct-2013 20:46||maxim||Comment : 0004053||Added||-|
|7-Oct-2013 19:36||adrians||Comment : 0004051||Added||-|
|7-Oct-2013 15:31||fork||Comment : 0004049||Added||-|
|7-Oct-2013 13:06||endo||Comment : 0004046||Added||-|
|7-Oct-2013 07:50||Gregg||Comment : 0004044||Added||-|