Classic Shift Ciphers with lens and finite-typelits
6 points by abhin4v
6 points by abhin4v
I've been writing a lot of tree data structures in Rust at work recently, and doing a lot of repetitive traversal work (maps, fallible maps, folds, etc) has made me really think about optics-based design. Always fun to see people talk about it.
How well does Rust do optics? I haven't looked at it for a long time.
Haven't really looked, I just wrote everything "manually" because I judged the effort of doing that to be less cost than the cleverness tax of doing actual optics.