You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you try to unset a word that is not bound, it is a no-op:
>>type?unset unbind 'x
==unset!
It returns an unset, but nothing happens. If you tried to set such a word, you'd get an error:
>>set unbind 'x none
** Script error: x word is not bound to a context
The same error could be given to indicate that x does not have any associated value to unset. This would be more consistent, because the behavior of unbound things and unset things are different in terms of the error messages you receive when they are run... and also when you use set or get with /any on them:
>> do unbind 'x
** Script error: x word is not bound to a context
>> do [x]
** Script error: x has no value
>>get/any unbind 'x
** Script error: x word is not bound to a context
>>type?get/any 'x
==unset!
; current behavior>>type?unset unbind 'x
==unset!; desired behavior>>unset unbind 'x
** Script error: x word is not bound to a context
Submitted by: fork
Currently if you try to unset a word that is not bound, it is a no-op:
It returns an unset, but nothing happens. If you tried to set such a word, you'd get an error:
The same error could be given to indicate that x does not have any associated value to unset. This would be more consistent, because the behavior of unbound things and unset things are different in terms of the error messages you receive when they are run... and also when you use set or get with /any on them:
Imported from: CureCode [ Version: r3 master Type: Wish Platform: All Category: Native Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#2219
Comments:
Submitted by: abolka
+1
This has been implemented as described and considered closed in Ren-C.
The text was updated successfully, but these errors were encountered: