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

feat: support bools in DataType.as_f64 and DataType.as_i64 variants #399

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

lukapeschke
Copy link
Contributor

Hello @tafia , I figured it would be nice to have an implicit conversion from bool to i64/f64 when using as_{i64,f64} , do you believe this makes sense as well ?

I haven't modified as_string yet because I thought it'd maybe be unexpected behaviour, but I'd gladly add if as well if you believe it makes sense 🙂

Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
@tafia tafia merged commit 7aa2086 into tafia:master Feb 6, 2024
4 checks passed
@tafia
Copy link
Owner

tafia commented Feb 6, 2024

Thanks, I think it is reasonable yes.

@lukapeschke lukapeschke deleted the support-bools-as_i64-as_f64 branch February 6, 2024 13:21
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.

2 participants