diego
2018-11-13 15:53:53

Could be that (the libreadline on macOS). Here’s the character: :grinning:


diego
2018-11-13 15:54:21

It happens with other Unicode characters as well, for example when trying to copy the examples with a Lambda character from the Racket docs


diego
2018-11-13 15:56:41

And it happens in the Racket REPL as well, so it must be something with the readline library I guess


diego
2018-11-13 15:57:05
[~]─> racket
Welcome to Racket v7.1.
> (\U+FFCE\U+FFBB (x) (* 2 x))
; x: undefined;
;  cannot reference an identifier before its definition
;   in module: top-level
; [,bt for context]
> (lambda (x) (* 2 x))
#<procedure>

diego
2018-11-13 15:57:35

the \U+FFCE\U+FFBB is what I get after copy-pasting the lambda character from https://docs.racket-lang.org/reference/lambda.html#%28form._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._lambda%29%29


willghatch
2018-11-13 16:46:17

Ha, Slack is so helpful that when I copy the character I get the text «:grinning:» instead of unicode… But it sounds like it is libreadline on MacOS. At some point Rash will definitely move away from using readline, but I can’t give a timeline for that. Definitely not in 2018.


willghatch
2018-11-13 16:47:12

(of course it interpreted the text back into am emoji… colon grinning colon)


willghatch
2018-11-13 16:48:55

You can also run rash-repl with readline disabled, though then you have no editing…


diego
2018-11-13 20:37:43

@willghatch thanks for looking into this. It’s no big deal :slightly_smiling_face: I’m still in the process of learning Racket, and I will start poking more into the code as I learn. Hopefully at some point I can start contributing some things.