On Sat, May 15, 2021 at 4:18 AM Ricky Teachey <ricky@teachey.org> wrote:
On Fri, May 14, 2021 at 2:09 PM Ricky Teachey <ricky@teachey.org> wrote:
On Fri, May 14, 2021 at 1:14 PM André Roberge <andre.roberge@gmail.com> wrote:
You can already experiment with this.
Thanks Andre I tried it out and it works great.
Do the appended capital Fs make these numbers look like some kind of hexadecimal representation or is it just me?
Actually it just hit me: I don't know if this will be considered a big difficulty or not, but currently you can write division operations using hexadecimal numbers:
0xF / 0xF 1.0
And this works in Andre's experimental implementation like so for fractions of hex numbers:
0xF / 0xF F Fraction(1, 1)
But it looks... funny. I don't know if is is good or bad. It just is.
I can't imagine that this would be a normal thing, and I wouldn't be averse to specifying that a Fraction literal consist of a sequence of digits (and optionally underscores) followed immediately, without whitespace, by the letter F. Basically the same kinds of rules as for an imaginary literal, only without the decimal point. Keep it simple, keep it easy. ChrisA