githree
2018-3-12 12:12:47

this is still bugging me: how to open racket terminal with at-exp enabled; Racket -I at-exp racket doesn’t work?


pocmatos
2018-3-12 12:24:57

@leif MFelleisen has mentioned you have developed an indentation checker. Is that available anywhere?


leif
2018-3-12 12:38:44

@pocmatos I mean, I just slapped a small script together to help him with one of his classes. But its not particularly robust.


leif
2018-3-12 12:38:52

Would you like me to send it to you?


pocmatos
2018-3-12 12:39:25

That would be great, thanks. pmatos@linki.tools


leif
2018-3-12 12:40:20

Okay, one moment.


leif
2018-3-12 12:45:53

@pocmatos sent.


pocmatos
2018-3-12 13:09:02

@leif thanks.


zenspider
2018-3-12 20:04:53

@githree huh. not sure. racket -i -I typed/racket works fine, but racket -i -I at-exp complains about not finding share/pkgs/at-exp-lib/at-exp/main.rkt… but typed/racket doesn’t have a main (by file name). Maybe something in the info.rkt hints at the how?


zenspider
2018-3-12 20:05:24

hrm.. there isn’t one of those either [ETA: I was wrong on this, dunno how I missed it]


zenspider
2018-3-12 20:06:57

the typed/racket info.rkt is a 1 line mess. But I just found raco read <path> which helps tremendously


samth
2018-3-12 20:10:26

the typed/racket.rkt file is probably what you want


samth
2018-3-12 20:10:50

but in general, at-exp is a module language and not necessarily something you can use at the repl


githree
2018-3-12 21:26:34

@zenspider thanks for actually trying it out to see what I mean :slightly_smiling_face:


githree
2018-3-12 21:27:39

@samth but shouldn’t it be available as an option to use reader extension like the at-exp from the level of REPL?


samth
2018-3-12 21:30:03

The at-exp reader is not necessarily something that works for repls


samth
2018-3-12 21:30:10

Module readers can be different


samth
2018-3-12 21:31:06

Additionally, there’s not a command line option for configuring the reader at the repl


githree
2018-3-12 21:35:30

OK, my question was more general than at-exp: I was planning to build reader extension but than I realised I can’t find the right syntax to even make repl work with at-exp. At least I know there is none. So it is more a feature request then…


samth
2018-3-12 22:19:20

@githree you can do something like racket -e '(current-readtable (make-at-readtable))'


githree
2018-3-12 22:35:30

thanks @samth, will try it