Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ALL completely ignore UNSET! values #2201

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 0 comments
Closed

Make ALL completely ignore UNSET! values #2201

Siskin-Bot opened this issue Feb 15, 2020 · 0 comments
Labels

Comments

@Siskin-Bot
Copy link
Collaborator

Siskin-Bot commented Feb 15, 2020

Submitted by: fork

Currently, ALL sort of ignores unset values. Which is to say, an UNSET! will not cause the evaluation to fail and return #[none]

>> all [10 print "Hello" 20]
Hello
== 20

However, if an unset happens at the end, that UNSET! value is returned:

>> all [10 print "Hello"]
Hello
>>

If an UNSET! is taken out of the consideration completely, that should return 10. Similarly, if all the evaluations are UNSET!, the result should be the same as an empty block (true). Today that is not the case:

>> all []
== true
>> all [print "Hello"]
Hello

Imported from: CureCode [ Version: r3 master Type: Bug Platform: All Category: Unspecified Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#2201

Comments:

Rebolbot commented on Mar 6, 2015:

Submitted by: fork

Duplicate of #850


Rebolbot added the Type.bug on Jan 12, 2016


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant