Many Pythonistas don't avoid writing nested if-else clauses although avoiding this is easy. Is this idiomatic? #python

@veer66 oh, the lisp cond! This, and data-driven development, have caused me to feel pain whenever I see a nested conditional

@worldsendless Lisp's cond and Ocaml's match (in Rust) changed me.
Follow

@veer66 how does match work, and what is ocaml wrt Rust?

@worldsendless match is similar to case in Common Lisp and Clojure. Anyway, the Rust compiler check whether patterns cover every case.

An early Rust compiler was written in OCaml. I guess that Graydon Hoare - the Rust creator wanted Firefox to be coded in OCaml or a similar programming language but this language must be as efficient as C++.
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.