Hi!

During bug fixing, Jozo came with interesting observation: the default 
behavior of 'remove' builtin for maps if a map does not contain key, is 
strange.

Documentation:
"Remove the value with the key KEY from a map. Returns nil if the key is 
invalid." 

The definition for list is similar. So, this means the following code will 
break quite a bit, if "this key" does not exist.

a = remove( a, "this key" )

The proposal is to change the behavior to return the original (unchanged) 
map/list for CODE11 (openSUSE >= 11.1). Seems code in SVN seems to be quite 
OK (either uses haskey() or is safe by other means, or broken just because of 
this behavior ;-))

Any comments or objections?

Stano
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to