--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/172d294d-3a56-42e1-873f-deea0cc0880c%40googlegroups.com.
I don't recall any examples at the moment but I remember seeing APIs that return data in the basic format so the proposal sounds good to me.
I agree that the format should be specified explicitly. Given a Date.from_iso8601/2 already exists, the second argument is the calendar (Calendar.ISO by default), the format needs to be the 3rd argument which is a bit unfortunate.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/59A9C014-4CD5-40FB-AF33-9CC7C259E691%40wojtekmach.pl.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAK-y3Cs1W8GpSiKPOPh9pr2dwMOYw%2BsoMvRz7Usw71q7RX_DzA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CACzMe7YV-Op6QmS__mmLDf9KQ6HqPSou4AynrMsYKQfnn4JeNQ%40mail.gmail.com.
> Another idea is to deprecate `Date.from_iso8601(string, calendar)` in favour of `Date.from_iso8601(string, calendar: calendar)`, and then `:format` becomes just another option.I’m +1 for this one. For optional parameters it is always good what actually that’s optional that it receives. I would even deprecate every `Date.something(date, calendar)` call in favor of that.On Sep 7, 2019, at 10:10, Wojtek Mach <woj...@wojtekmach.pl> wrote:Another idea is to deprecate `Date.from_iso8601(string, calendar)` in favour of `Date.from_iso8601(string, calendar: calendar)`, and then `:format` becomes just another option.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/DECB2A72-9D8E-45A7-BF0A-2FA52B7D9887%40gmail.com.