Is the ‘lozenge’ a Racket-ism or is it unique to this project? I understand the logic around using a character that’s hardly used in regular writing – to avoid escaping – but it seems as though it would be hard to use in practice.
Racket by default also doesn’t use the keyword "lambda", but instead uses "λ".
You can obviously use something different, if you want to, but the default, and recommended solution, is using unicode characters.
As Racket is frequently written in the DrRacket IDE, this also makes sense.
I'm not sure that's true:
Welcome to Racket v6.10.1.
> (define foo (lambda (x) (+ x 1)))
> (foo 1)
2In my current checkout of the codebase, I see the following:
~/src/racket/racket/share/pkgs$ ag lambda **/*.rkt | wc -l
1041
~/src/racket/racket/share/pkgs$ ag λ **/*.rkt | wc -l
163
Note also consistent usage of spelled-out lambda in the Racket style guide, https://docs.racket-lang.org/style/. ~/src/racket/racket/share/pkgs$ find . -iname '*.rkt' | xargs ag lambda | wc -l
33589
~/src/racket/racket/share/pkgs$ find . -iname '*.rkt' | xargs ag λ | wc -l
16722
Glyph λ is more common than I thought, but still heavily outnumbered by spelled-out lambda.