Defining if, cond and progn in Rust in Remacs! https://github.com/Wilfred/remacs/pull/598
The lispiest code I've read in ages :)
Related Posts
TIL Rust has an ambiguity `if Foo {}` -- is `Foo` a value of type bool, or a struct?
Rust solves this by defining a grammar production 'any expression except struct literals' and using it in this position. https://rust-lang.github.io/rfcs/0092-struct-grammar.html
Over a sufficiently long time horizon, all code you write is legacy code.
Go has an elegant approach to defining example functions, which are shown in docs as `main()` with the output: https://go.dev/blog/examples