Re: [racket] Simplifying keyword arguments

2010-07-21 Thread Greg Hendershott
I've had the same thought. Plus with contracts, can even be 3 times in proximity, e.g. (define/contract (my-pony #:color [color "red"]) (() (#:color string?) . ->* . any) which is a bit like the Department of Redundancy Department's Division of Redundancy Division. :) Not a very big annoyanc

[racket] Simplifying keyword arguments

2010-07-21 Thread Laurent
Hi, When using keyword arguments, I often write: (define (foo #:some-arg some-arg) ) or: (define (foo #:some-arg [some-arg a-value]) ) This redundancy between the keyword name and the argument name bothers me a little each time I use it. Would it be wrong to simplify this to: (define (