Our simple arithmetic expression language in Rust


In my first post of the month, this is a short follow-up to my previous post in which I presented a simple arithmetic expression language embedded in Scala as well as Haskell, Java and OCaml. Today I present a version implemented in my new second-favourite programming language (favourite) Rust:

Some thoughts:

It would be nice if the Box builder functions could be automatically generated. Otherwise, Rust has impressed me very much so far.



Content © 2024 Richard Cook. All rights reserved.