Rust for Scala and Haskell Developers: A Surprisingly Familiar Journey by Pawel Szulc

April 21, 2026

Rust has become one of the most talked-about programming languages in recent years, especially among systems programmers. But for developers coming from functional programming languages like Scala and Haskell, Rust can initially feel unfamiliar — filled with concepts like ownership, borrowing, and lifetimes.

Pawel Szulc explored why that first impression can be misleading. In his presentation, Rust for Scala and Haskell Developers: A Surprisingly Familiar Journey, he showed how many of Rust’s core ideas are actually deeply aligned with functional programming principles.

From traits that resemble typeclasses, to explicit error handling with Result, immutable-by-default semantics, and powerful compile-time guarantees, Rust turns out to have far more in common with Scala and Haskell than many developers expect.

This talk was not about language wars or convincing everyone to switch to Rust. Instead, it was a practical and thoughtful exploration of how functional programmers can approach Rust through concepts they already know — making the learning curve far less intimidating and, surprisingly, even enjoyable.

A comprehensive overview: Rust for Scala and Haskell Developers: A Surprisingly Familiar Journey

And surprisingly enough, that title turned out to be very accurate.

For many developers coming from Scala or Haskell, Rust can initially look alien. There are ownership rules, references, lifetimes, mutable vs immutable semantics, and an ecosystem heavily influenced by systems programming traditions. At first glance, it feels far removed from the abstractions and ergonomics functional programmers are used to.

But Pawel’s presentation showed that beneath Rust’s unfamiliar syntax lies something deeply recognizable.

Rust Is Not What Functional Programmers Expect

One of the most interesting points in the talk was that many FP developers first encounter Rust in the wrong context.

The typical introduction often starts with:

  • “Let’s build a TODO app”
  • “Here’s Cargo”
  • “Let’s learn borrowing”
  • “Here’s how memory works”

For a Scala or Haskell developer, this can feel confusing and unnecessary. Why would anyone willingly trade garbage collection, expressive type systems, and elegant abstractions for manual memory concerns?

Pawel argued that the key to understanding Rust is recognizing why the language exists.

Rust is trying to solve problems that functional developers on the JVM rarely have to think about:

  • deterministic memory management
  • runtime-free execution
  • avoiding garbage collection pauses
  • memory safety without a GC
  • low-level control without C++-style footguns

And once you understand that context, many of Rust’s design decisions suddenly make sense.

 

The Ownership Model Finally Clicks

A large part of the presentation focused on Rust’s ownership and memory model.

Rather than treating memory management as a runtime concern handled by a garbage collector, Rust encodes ownership directly into the language and compiler.

The core ideas:

  • every value has an owner
  • ownership can be moved
  • values are dropped automatically when owners go out of scope
  • references allow borrowing without transferring ownership

For developers coming from JVM languages, this initially feels restrictive.

But Pawel reframed ownership as something functional developers already understand intuitively:

  • immutability by default
  • explicit mutation
  • controlled effects
  • making invalid states unrepresentable

Rust simply extends those ideas into memory management itself.

 

Rust Feels Surprisingly Familiar to Scala Developers

Once the talk moved beyond ownership, the similarities became much more obvious.

 

Traits Feel Like Typeclasses

Rust traits map remarkably well to Scala traits and Haskell typeclasses.

You define behavior independently from data structures and implement traits for different types.

The syntax may differ, but conceptually it feels extremely familiar:

  • ad-hoc polymorphism
  • abstraction over behavior
  • generic constraints
  • reusable interfaces

The biggest difference is performance.

Rust aggressively specializes generic code at compile time through monomorphization, avoiding the runtime overhead associated with virtual dispatch.

In other words:
Rust often gives you typeclass-style abstractions at effectively zero runtime cost.

 

Option Without Null

Rust does not have `null`.

Instead, optionality is represented explicitly through `Option`, which immediately feels natural to Scala and Haskell developers.

This means:

  • safer APIs
  • explicit absence
  • fewer runtime surprises
  • compiler-enforced handling

For developers already accustomed to `Option` or `Maybe`, this part of Rust feels refreshingly modern rather than difficult.

 

Error Handling Is Functional Programming in Disguise

One of the strongest sections of the talk covered Rust’s error handling.

Rust does not rely on exceptions.

Instead, errors are represented explicitly through the `Result<T, E>` type:

  • `Ok(T)` for success
  • `Err(E)` for failure

For FP developers, this immediately resembles `Either`.

And importantly:
the entire ecosystem embraces this style consistently.

Rather than mixing exceptions, nullable values, and ad-hoc error signaling, Rust pushes developers toward explicit, composable error handling everywhere.

Pawel highlighted how refreshing this consistency feels in practice.

Even asynchronous Rust code uses `Result` instead of hidden async exceptions.

That design choice makes control flow significantly easier to reason about compared to many mainstream ecosystems.

 

The “Question Mark” Operator

Rust’s `?` operator generated perhaps the biggest moment of recognition during the presentation.

The operator effectively:

  • unwraps successful results
  • short-circuits on failure
  • propagates errors automatically

To functional programmers, it feels very close to monadic composition.

Rust does not expose the abstraction as explicitly as Haskell does, but the behavior is familiar:
composable computations with automatic failure propagation.

Rust intentionally stops short of higher-kinded abstractions, but many FP ideas are clearly present beneath the surface.

 

Zero-Cost Abstractions Everywhere

A recurring theme throughout the presentation was Rust’s philosophy of “zero-cost abstractions.”

Rust wants abstractions to:

  • remain expressive
  • remain safe
  • disappear at runtime

This is where Rust differs from many managed runtimes.

The language aggressively optimizes abstractions away through compilation rather than relying on runtime indirection.

For FP developers, this creates an interesting tradeoff:
you get many familiar abstractions, but you must also remain more aware of memory layout and ownership semantics.

 

Learning Rust as a Functional Programmer

Pawel also shared practical advice for learning Rust.

Interestingly, he recommended not starting with algorithmic exercises like Advent of Code.

Instead:

  • rewrite programs you already know how to build
  • repeatedly implement small services
  • focus on understanding ownership gradually
  • use AI tooling as a mentor for compiler errors and unfamiliar patterns

According to Pawel, Scala developers can become productive in Rust surprisingly quickly — often within a month.

And based on his experience, developers with functional programming backgrounds tend to adapt especially well because many of Rust’s ideas already align with FP thinking.

 

Final Thoughts

The biggest takeaway from the presentation was not that Rust is “the next functional language.”

It isn’t.

Rust comes from a different lineage and solves different problems.

But it borrows heavily from ideas functional programmers already value:

  • explicitness
  • strong types
  • composition
  • immutability
  • predictable behavior
  • safe abstractions

Underneath the systems-programming exterior is a language that often feels unexpectedly familiar.

For Scala and Haskell developers, Rust may not be as foreign as it first appears.

And that makes the journey into Rust considerably more approachable than many expect.

 

Additional Resources

Check out more from the MeetUp Func Prog Sweden. Func Prog Sweden is the community for anyone interested in functional programming. At the MeetUps the community explore different functional languages like Erlang, Elixir, Haskell, Scala, Clojure, OCaml, F# and more.