varjo
varjo copied to clipboard
Add rational float syntax
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.