> 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)
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)
> 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 ->
>
I'm working on a script that I eventually plan to invoke from the command line.
I'd like the script to either take a file name argument or, if no arguments,
read from stdin. However, while developing the script in DrRacket, I'd like to
not invoke the top-level function, and to instead define an
4 matches
Mail list logo