Re: [racket-users] Unable to utilize parse-command-line to build command line application

2016-10-11 Thread Ben Greenman
Indirect answer: could you use `command-line` instead? #lang racket/base (require racket/cmdline) (define input-from (make-parameter #f)) (command-line #:program "sample" #:once-each [("-i" "--input-file") i "Use as the input file." (input-from i)] #:args (file) (printf "my

[racket-users] Unable to utilize parse-command-line to build command line application

2016-10-11 Thread Ian Thomas
I'm trying to add a simple command line interface to a program and receive the following error: parse-command-line: expected argument of type ; given: '((once-each (("-i" "--input\ -file") # ("Use as the input file."

Re: [racket-users] When to use functions vs macros

2016-10-11 Thread David Storrs
On Tue, Oct 11, 2016 at 2:16 PM, Philip McGrath wrote: > This doesn't address functions vs macros, but have you considered > call-with-transaction >

Re: [racket-users] When to use functions vs macros

2016-10-11 Thread Philip McGrath
This doesn't address functions vs macros, but have you considered call-with-transaction ? On Tue, Oct 11, 2016 at 1:10 PM Greg Hendershott

Re: [racket-users] When to use functions vs macros

2016-10-11 Thread Greg Hendershott
1. "Both" is sometimes a good answer: Write the function. Then maybe write a macro to do only what only a macro can do -- here, the "de-lambda" sugar, and just call the function to do the real work. 2. Maybe `with-handlers` would work better? -- You received this message because you are

[racket-users] FUSE filesystem package

2016-10-11 Thread Scott Moore
Hi all, I'm announcing a new package: fuse ( https://github.com/thinkmoore/racket-fuse). fuse is a racket library for implementing filesystems in userspace using the FUSE API available on many *nix platforms and OS X (currently, I've only tested using recent releases of FUSE on Linux). People

Re: [racket-users] Handin Issues

2016-10-11 Thread mattsap
On Tuesday, October 11, 2016 at 12:42:44 PM UTC-4, Eli Barzilay wrote: > On Tue, Oct 11, 2016 at 9:35 AM, wrote: > > Thanks for your detailed response! Thanks! If I get any progress, I'll try to update later. > > > > I do have the following additions at the top of the file: >

Re: [racket-users] Handin Issues

2016-10-11 Thread Eli Barzilay
On Tue, Oct 11, 2016 at 9:35 AM, wrote: > Thanks for your detailed response! > > I do have the following additions at the top of the file: > (add-header-line! (get-submission-timestamp)) > (add-report-line! (get-submission-timestamp)) > > So would this mean there isn't an issue

Re: [racket-users] [off-topic] any thoughts on gradescope?

2016-10-11 Thread Eli Barzilay
On Tue, Oct 11, 2016 at 9:06 AM, Jay McCarthy wrote: > It looks neat. I've done similar things to Eli many times as well. > > https://github.com/jeapostrophe/grade-ninja -- Had the whole "give a > free-form comment" or click a button to give the same feedback again Yeah,

[racket-users] When to use functions vs macros

2016-10-11 Thread David Storrs
The general question is "when should I prefer functions versus macros?" but a specific example would be this: I'm doing some database programming and I wanted a thing that would handle transactions for me. Doing it as a function would look something like this: (define (in-transaction dbh body)

Re: [racket-users] Handin Issues

2016-10-11 Thread mattsap
Thanks for your detailed response! I do have the following additions at the top of the file: (add-header-line! (get-submission-timestamp)) (add-report-line! (get-submission-timestamp)) So would this mean there isn't an issue with back-end but rather my checker.rkt file? Would it be possible to

Re: [racket-users] [off-topic] any thoughts on gradescope?

2016-10-11 Thread Jay McCarthy
It looks neat. I've done similar things to Eli many times as well. https://github.com/jeapostrophe/grade-ninja -- Had the whole "give a free-form comment" or click a button to give the same feedback again https://github.com/jeapostrophe/grade-samurai --- Expanded that with a Web UI for students

Re: [racket-users] racket-mode: OK to require Racket 6.0+?

2016-10-11 Thread Konrad Hinsen
On 10/10/16 21:42, Tim Jervis wrote: Here here! +1 Tim Jervis +44 7801 337 078 On 10 Oct 2016, at 19:56, Dmitry Igrishin wrote: Hi Greg, Yes, please! Racket mode for Emacs is great. Thank you for you work! -- You received this message because you are subscribed to

Re: [racket-users] [off-topic] any thoughts on gradescope?

2016-10-11 Thread Eli Barzilay
On Mon, Oct 10, 2016 at 11:14 PM, 'John Clements' via Racket Users wrote: > Sorry, this is totally off-topic; this is the second time I’ve heard > of gradescope.com, and it looks like it might actually be > useful/interesting. It might also be a sleazy scam site