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

FORM non-STRING! (instead of non-ANY-STRING!) in FIND #316

Merged
merged 1 commit into from Oct 28, 2016
Merged

FORM non-STRING! (instead of non-ANY-STRING!) in FIND #316

merged 1 commit into from Oct 28, 2016

Conversation

hostilefork
Copy link
Member

Rebol issue 1160 pointed out a problem with using a TAG! to search
over a string:

metaeducation/rebol-issues#1160

This change uses FORM on the argument, so find "<abc>" <abc> will
account for the tag delimiters.

Searching has some strange ramifications for other types, given that
you can't really get a good result out of find <abc> "<". For
lack of a better rule, though, this goes ahead and FORMs.

Also gets rid of the unimplemented wildcard features in FIND and
SELECT, which are more suited to a PARSE or GLOB dialect.

Rebol issue 1160 pointed out a problem with using a TAG! to search
over a string:

metaeducation/rebol-issues#1160

This change uses FORM on the argument, so `find "<abc>" <abc>` will
account for the tag delimiters.

Searching has some strange ramifications for other types, given that
you can't really get a good result out of `find <abc> "<"`.  For
lack of a better rule, though, this goes ahead and FORMs.

Also gets rid of the unimplemented wildcard features in FIND and
SELECT, which are more suited to a PARSE or GLOB dialect.
@hostilefork hostilefork merged commit 688fd80 into metaeducation:master Oct 28, 2016
@hostilefork hostilefork deleted the form-string-find branch October 28, 2016 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant