A type checking error in Elixir 1.18
Read OriginalThe 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser