> 
> Literal sets can include datum-literals:
> 
>    (define-literal-set lits #:datum-literals (a b c) (d e))
> 

Ah, oops I missed that keyword parameter.

> For question 1, that's probably the best way. If you want to suppress 
> the printing of all of the datum literals in error messages, you can 
> mark the syntax class as `#:opaque`.
> 

I was more wanting to avoid keeping two lists of the literals in the source... 
I *do* want the error to enumerate possibilities.

> In principle, you could also use `literal-set->predicate`, but I just 
> discovered it ignores the datum literals. I'll push a fix.
> 

I saw that... assuming it worked, I'm not sure how/where I would put that..

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to