Ben Chuanlong Du's Blog

It is never too late to learn.

Hands on the Rust Crate Indicatif

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The indicatif crate does not work with Jupyter/Lab notebook yet.

How Much to Push for Functional Programming and Immutability

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Most new programming languages (such as Rust, Go, Kotlin, Scala, etc.) support functional programming style and have clear distinguishment on mutable vs immutable variables. So, is functional programming superior to imperative …

Sum Type in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Enum is the preferred way to constrcut a sum type of several types (which does not implemente the same trait).

The Rust crate either provides an enum Either (with variants Left …