cenazoic
2020-4-11 14:33:31

@cenazoic has joined the channel


greg
2020-4-11 19:21:50

@samth > while I have you here, numbers with exponents don’t get the literal color in racket-mode I opened https://github.com/greghendershott/racket-mode/issues/442 to look at later. Now that I am looking at it, I wonder if you meant exact-complex numbers? This part of the reader grammar ‹exact-complexn› ::= ‹exact-rationaln› ‹sign› ‹unsigned-rationaln› i?

Because in the list of examples there — https://docs.racket-lang.org/reference/reader.html#%28part._parse-number%29 — the only ones that don’t seem to work for me are these three:

1+2i reads equal to (make-rectangular 1 2) 1/2+3/4i reads equal to (make-rectangular (/ 1 2) (/ 3 4)) 1.0+3.0e7i reads equal to (exact->inexact (make-rectangular 1 30000000))


samth
2020-4-11 19:22:59

no, it’s not about complex numbers


samth
2020-4-11 19:23:19

samth
2020-4-11 19:23:31

some numbers are green, some are white


greg
2020-4-11 19:24:16

OK. So I guess I found an additional bug to fix then.


greg
2020-4-11 19:24:20

Thanks.


dgonsalves22
2020-4-11 20:28:47

@dgonsalves22 has joined the channel