What about taking both opts (list) and calendar (module)? We may add 
optional runtime warning when calendar is passed if needed.

The downside is: (probably) it cannot give compile time / dialyzer warning 
- as we can do with introducing new functions.


On Tuesday, August 6, 2019 at 3:07:07 AM UTC-7, Wojtek Mach wrote:
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/3b674405-b94e-4f45-93fa-3234e3e55847%40googlegroups.com.

Reply via email to