Re: [racket-users] Specializing functions accepting keywords

2019-07-11 Thread Philip McGrath
The easiest way I know is to use `curry`, since Alexis fixed its keyword argument support last year: #lang racket (define (fish #:name[name #f] #:color [color #f] #:studio [stu

[racket-users] Specializing functions accepting keywords

2019-07-10 Thread Jens Axel Søgaard
Consider the following fishy example wherein we try to reuse a function with keyword arguments. (define (fish #:name[name #f] #:color [color #f] #:studio [studio #f] #:eyes[eyes 2]) (~a "The fish " name " is " color ", appears in a movie