2018 10.19.22 UTC+2 skrev Jon Kleiser følgende:
>
> Hi,
>
> I would like to run some Racket programs in the macOS Terminal (racket
> foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has
> completed. Is that possible?
>
> /Jon
>
--
You received this me
Hi,
I would like to run some Racket programs in the macOS Terminal (racket
foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has
completed. Is that possible?
/Jon
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To
Works like a charm. Thanks!
Maybe that "21.1.1 Interactive Mode" chapter should mention that "-it"
solution?
torsdag 13. september 2018 12.58.57 UTC+2 skrev Matthias Felleisen følgende:
>
>
> $ racket -it foo.bar
>
>
>
> On Sep 13, 2018, at 4:19 AM,
Sorry, but I'm not quite happy yet. ;-)
When I get the ">" prompt, the definitions made in my hello.rkt seems to be
gone. I get "cannot reference an identifier before its definition". How can
I avoid that definitions and data get lost?
torsdag 13. september 2018 13.03.42
I think I found the answer: Use (provide . . .).
torsdag 13. september 2018 13.16.15 UTC+2 skrev Jon Kleiser følgende:
>
> Sorry, but I'm not quite happy yet. ;-)
> When I get the ">" prompt, the definitions made in my hello.rkt seems to
> be gone. I get "cannot
, and
> run
>
> ln -s /usr/local/opt/readline/lib/libreadline.dylib
>
> That way, Racket will find the "libreadline.dylib" from Homebrew
> instead of the not-libreadline from the OS, since Racket looks in its
> own "lib" first.
>
> At Fri, 14 Sep
If I enter this in the REPL in my macOS Terminal
(string->list "hei")
then I get '(#\h #\e #\i), as expected, but if I replace "hei" with "høy",
the input line suddenly looks like this
(string->list "h\U+FFC3\U+FFB8y")
and what I get back is '(#\h #\y). The letter "ø" has been stripped away.
The
My Terminal "Advanced" tab also says "Unicode (UTF-8)".
When I run the PicoLisp REPL, then I have no translation and stripping,
"høy" is entered as "høy", it seems.
fredag 14. september 2018 10.55.28 UTC+2 skrev Jens Axel Søgaard følgende:
>
>
> D
em with libedit, which Racket uses by default, and the
> version of libedit that comes with Mac OS is not built with Unicode
> support.
>
> If you insteall readline (e.g., through Homebrew), then installing the
> "readline-gpl" Racket package will use readline and suppor
9 matches
Mail list logo