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

Add rational float syntax #219

Open
cbaggers opened this issue May 1, 2019 · 0 comments
Open

Add rational float syntax #219

cbaggers opened this issue May 1, 2019 · 0 comments
Assignees

Comments

@cbaggers
Copy link
Owner

cbaggers commented May 1, 2019

                api would be very tricky as the values in a ration
                can be bignums
22:04 <MetaYan> I meant to be able to use "1/3" in CEPL code, even
                though it gets desecrated to float...
22:04 <Baggers> oh, then yeah I bet we could add that really easily
22:04 *** Guest79 JOIN
22:04 <MetaYan> Because it looks nice...
22:05 <MetaYan> But no worries.
22:06 <Baggers> MetaYan: hmm yeah, how would we tell varjo if we
                wanted it to be converted to a float or a double
22:06 <Baggers> ?
22:07 <Baggers> we could do 1/3f0 1/3d0 as CL will intern those as
                symbols and varjo can just interperate that in it's
                own way
22:07 <MetaYan> Maybe like it now handles integers? At least it
                seems like integers are converted to floats
                automagically, or?
22:07 <Baggers> MetaYan: ints are autoconverted to floats when
                passed to functions taking floats
22:09 <Baggers> I'll add a ticket for this as it sounds nice, I'll
                just need a nice way to communicate what is
                intended/happening
22:09 <MetaYan> Ah, yes. That's what I meant.
@cbaggers cbaggers self-assigned this May 1, 2019
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

1 participant