Type | Wish | Status | dismissed | Date | 30-Jun-2010 06:35 |
---|---|---|---|---|---|
Version | alpha 99 | Category | Native | Submitted by | BrianH |
Platform | All | Severity | minor | Priority | normal |
Summary | Allow APPEND and INSERT to take none for the series argument, return none |
---|---|
Description |
REMOVE none just does nothing and returns none, passing it through. APPEND and INSERT could do the same. This is related to #1611, #1626, and http://www.rebol.net/r3blogs/0315.html (for EMPTY?). |
Example code |
Assigned to | n/a | Fixed in | - | Last Update | 30-Jun-2010 06:41 |
---|
Comments | |
---|---|
(0002410)
BrianH 30-Jun-2010 06:41 |
When REMOVE is passed none, it doesn't do anything, and that is not a problem. If APPEND or INSERT were to do the same, it would be a problem because the value to be inserted would be thrown away. This could lead to data loss. In situations like this, potential data loss is better to trigger an error about than to just do silently. The code that is needed to work around APPEND and INSERT not passing through none will also be needed to prevent data loss.
This is where we draw the line on none passthrough. Dismissed. |
Date | User | Field | Action | Change |
---|---|---|---|---|
30-Jun-2010 06:41 | BrianH | Description | Modified | - |
30-Jun-2010 06:41 | BrianH | Status | Modified | submitted => dismissed |
30-Jun-2010 06:41 | BrianH | Comment : 0002410 | Added | - |
30-Jun-2010 06:35 | BrianH | Ticket | Added | - |