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 Compare #29

Closed
snadrus opened this issue Sep 23, 2016 · 2 comments
Closed

String Compare #29

snadrus opened this issue Sep 23, 2016 · 2 comments
Assignees

Comments

@snadrus
Copy link

snadrus commented Sep 23, 2016

"abc" < "ad"
Evaluates to True in GoLang.
Please add string compare as I need it for a project I'm open-sourcing soon.

@Knetic Knetic self-assigned this Sep 26, 2016
@Knetic
Copy link
Owner

Knetic commented Sep 26, 2016

I was a little hesitant to do this, since I've never used lexicographical ordering like this. And since there are so many ways to lexicographically order, it seemed better suited to users writing functions to fit the needs they have.
But it looks like Python, Ruby, Nim, (Go, of course), Mongo, SQL, and many others all support this operation using their normal comparator operators; so it's more common than I thought.

I'll probably have time to implement this during the coming week. Will update once it's up.

@Knetic
Copy link
Owner

Knetic commented Sep 28, 2016

Added as of 188c506 .

@Knetic Knetic closed this as completed Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants