No joke I totally love #Rust for its match syntax.
Checking for three environment variables, returning the first match and returning a standard if none matched:
@kevin for the sake of showing the match syntax, this is valid... but just so you know, it is possible to write that same thing in way less code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=82fe60181038e4dbcd2d77042f7588af
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!