Comment

Comment by dschroer

The goal of pipe is to allow the code to read top to bottom. I always found it hard to explain the way an OpenSCAD program reads upwards when nesting operations.

As for the syntax there are certainly a lot of ways it could feel. JS devs would likely be familiar with =>, F# and Ocaml |>, Java ->. In the end I just picked one that felt natural to type for myself. From my experience if you write in enough languages you develop the ability to switch as needed.

parent dschroer 3 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton