Re: [elixir-core:9146] Re: [Proposal] latest and earliest functions for DateTime and NaiveDateTime

2019-10-10 Thread José Valim
Yes, I am with Ben. I have considered adding similar APIs already but I could not come up with a good proposal. Now I am quite happy with the current one. -- *José Valim* www.plataformatec.com.br Skype: jv.ptec Founder and Director of R -- You received this message because you are subscribed

[elixir-core:9146] Re: [Proposal] latest and earliest functions for DateTime and NaiveDateTime

2019-10-10 Thread Ben Wilson
FWIW We have an earliest_date and latest_date helper in almost every Elixir app we've built. The Enum.sort solution requires requires too many leaps to be at a glance readable if it's been a bit since you used DateTime.compare. Definitely a fan of including this. On Thursday, October 10, 2019