Functional semantics in imperative clothing

# · ✸ 67 · 💬 69 · 16 days ago · rtfeldman.com · lwboswell · 📷
I've always wanted the purely functional Roc programming language to be delightful for I/O-heavy use cases. Thanks to one little operator, purely functional I/O in Roc has now become a real delight! Roc nightly/roc' else # Build the `roc` CLI from source cargo build -release roc=target/release/roc fi $roc -version echo 'Building site markdown content' $roc run www/main. Roc nightly/roc" else # Build the `roc` CLI from source Cmd.exec! "Cargo" "Target/release/roc" roc = args -> Cmd.exec! pathToRoc args roc! Stdout. Line! "Building site markdown content" roc! It's so visually similar to the Bash version, you might not even guess that the Roc version desugars to a big pile of 100% statically type-checked pure functions. Finally, if you'd like to meet up with a bunch of Roc enthusiasts in person, there will be 3 different Roc talks at Software You Can Love 2024 in Milan this May, and we expect it to be the largest in-person gathering of Roc programmers to date.
Functional semantics in imperative clothing



Send Feedback | WebAssembly Version (beta)