Software Design: Tidy First?

Functional Genie

Getting the genie to use functional programming style in Rust

Kent Beck's avatar
Kent Beck
Jun 08, 2025
∙ Paid

I’m working on a project in Rust to build a performance-competitive, library-quality implementation of a map with sorted keys.

Since it's a new language for me, I didn't notice the genie using an awkward idiom when calling functions that return an Option. The (apparently) default style is to explicitly check results with an if statement.

if let Some(left)…
User's avatar

Continue reading this post for free, courtesy of Kent Beck.

Or purchase a paid subscription.
© 2026 Kent Beck · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture