Jonas Hietala 12/30/2024

A type checking error in Elixir 1.18

Read Original

The article discusses the author's first encounter with a type checking warning in Elixir 1.18, focusing on an error when using comparison operators (<) with Time structs instead of the proper Time.before? function. It explores the limitations of structural vs. semantic comparison in Elixir and expresses hope that the evolving type system will catch more subtle bugs, like typos in atom matching, in the future.

A type checking error in Elixir 1.18

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week