Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Twelve Years of Go. Parent comment
I personally vastly prefer Rusts Result<T, Error> and Erlang/Elixirs {:ok, T} you pattern match on or crash the process and recover.
The code is cleaner while it also makes harder to make mistakes.
I prefer the current situation to exceptions but would like to see them try something more like Rust or Elixir at some point.
I personally vastly prefer Rusts Result<T, Error> and Erlang/Elixirs {:ok, T} you pattern match on or crash the process and recover.
The code is cleaner while it also makes harder to make mistakes.