>From racket-news [1]:

    mixfix (pkg/src) library allows users to define and use mixfix operators in 
Racket, by Sorawee Porncharoenwase.

>From the mixfix docs [2]:

    > (define-mixfix-rule (c {~datum ?} t {~datum :} e)
        (if c t e))
    > (#true ? 1 : 2)
    1

This is what I expected to be able to do when I first started experimenting 
with various LISPs and Schemes. Supporting only prefix macros seemed like a bit 
of limitation to me. If mixfix macros were supported out of the box rather than 
hacking #%app, it would be easier to combine syntax libraries. Possible for 
Racket 2?

[1] https://racket-news.com/2021/03/racket-news-issue-48.html
[2] https://docs.racket-lang.org/mixfix/

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/sigid.27168ddb34.20210323155937.GA4842%40papaya.papaya.

Reply via email to