Re: [racket-users] read from stdin, except when run in DrRacket

2017-02-08 Thread Steve Byan's Lists
> On Feb 8, 2017, at 2:06 PM, Matthias Felleisen wrote: > > > I thought of giving this answer too, but if this is about testing let me > propose a slightly different approach: Thanks. By "testing" I meant flailing around in the REPL while I a) learn Racket and b)

Re: [racket-users] read from stdin, except when run in DrRacket

2017-02-08 Thread Matthias Felleisen
I thought of giving this answer too, but if this is about testing let me propose a slightly different approach: #lang racket ;; assume main has two arguments (define (main) (define args (current-command-line-arguments)) (if (= (vector-length args) 0) (do-it)

Re: [racket-users] read from stdin, except when run in DrRacket

2017-02-08 Thread Steve Byan's Lists
> On Feb 8, 2017, at 2:02 PM, Ben Greenman wrote: > > One idea: you can put the argument-parsing code in the "main" submodule, then > tell DrRacket not to run the main submodule. [snip] > Then in DrRacket, click "Language -> Choose Language -> Show Details -> >