> 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) figure out the logic for my
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)
(with-input-from-fi
> 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 ->
> Submodules to Run" and un-chec
One idea: you can put the argument-parsing code in the "main" submodule,
then tell DrRacket not to run the main submodule.
#lang racket
(define (run in-port)
"testing...")
(module+ main
(require racket/cmdline)
(command-line
#:args args
(run (if (null? args) (current-input-port) (
4 matches
Mail list logo