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

String comparison? #9

Open
davep opened this issue Apr 6, 2012 · 2 comments
Open

String comparison? #9

davep opened this issue Apr 6, 2012 · 2 comments

Comments

@davep
Copy link

davep commented Apr 6, 2012

Now that strings have been added, what's the intended way of comparing them? I note that there's no 'string=?' and the like, there's no current support for eq?, eqv? or equal? and it seems that '=' (and the other obvious primitives) isn't being overridden for this:

ecmachine:/ guest$ (= "Foo" "Foo")
#f
@AlexNisnevich
Copy link
Owner

Good point. Which predicates would you like to see? I imagine it wouldn't be too hard to implement them.

@davep
Copy link
Author

davep commented Apr 6, 2012

I suppose that would depend on your intent for the design of ECMAchine, but I'm thinking that it would make sense to at least follow R5RS on this: http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_sec_6.3.5

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

No branches or pull requests

2 participants