Did a code deep dive into why we can’t have nice date time sorting in #Elixir, including hacking out a custom implementation of `erts_cmp_compound()` in #Erlang, and custom struct construction and handling in Elixir, and found out we can’t have nice date time sorting in Elixir (at least not easily, and performantly)

Follow

@madlep would you say that happened before or after you learned that we can't have nice date time sorting in Elixir?

@jonn I knew date/time needed to use custom compare function already. Was just reminded when I ran into it again (after forgetting, and getting bitten), and was curious as to how complicated it would be to make it work with >, < etc operators.

Sign in to participate in the conversation
Doma Social

Mastodon server of https://doma.dev.