REBOL3 tracker
  0.9.12 beta
Ticket #0001627 User: anonymous

Project:



rss
TypeWish Statusdismissed Date30-Jun-2010 06:35
Versionalpha 99 CategoryNative Submitted byBrianH
PlatformAll Severityminor Prioritynormal

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 ton/a Fixed in- Last Update30-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 -