envy icon indicating copy to clipboard operation
envy copied to clipboard

Custom type coercion function

Open florence opened this issue 10 years ago • 1 comments

It would be nice to have a custom coertion/parsing function beyond the generic type based ones. Something like:

(define/provide-environment [id #:coerse my-parse])

This would allow types beyond the default ones supported.

florence avatar Aug 31 '15 02:08 florence

Yes, this is semi-planned, I just don't know exactly how I want to do it yet. The solution you mentioned is definitely the simplest one, though.

lexi-lambda avatar Aug 31 '15 02:08 lexi-lambda