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

[Feature Request] coerceTo('boolean') #3322

Closed
mike-marcacci opened this issue Nov 13, 2014 · 3 comments
Closed

[Feature Request] coerceTo('boolean') #3322

mike-marcacci opened this issue Nov 13, 2014 · 3 comments
Milestone

Comments

@mike-marcacci
Copy link

This is probably really low priority, but really easy to implement: it would be nice to be able to do something like:

r.expr('foo bar').match('^foo').coerceTo('boolean')

which is currently possible doing:

r.expr('foo bar').match('^foo').not().not()

Using the suggested syntax would just feel a little cleaner and might be a bit more obvious. Cheers!

@thelinuxlich
Copy link

Probably duplicate of #3133?

@danielmewes
Copy link
Member

Hi @mike-marcacci, thank you for your suggestion. Indeed this looks like a duplicate of #3133.

@danielmewes danielmewes added this to the duplicate milestone Nov 13, 2014
@mike-marcacci
Copy link
Author

Ah yes, sorry – didn't see that one! Thanks!

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

3 participants