> I like José's suggesting of supporting a flag, but it gets kind of
> complicated as there are several dimensions here even in our reduced case.
> Dates, times, and datetimes support either basic or extended notations;
> dates and datetimes support calendar dates or ordinal dates; both are
> applicable to any parsing.
>

Are we 100% sure that ordinal datetimes are part of ISO8601? Kip, can you
please confirm?


> If we went with this approach I'd lean towards always accepting either
> form for one of the dimensions, and using flags to the sigil and parsing
> functions to indicate intent for the other.
>

I am not necessarily worried about sigils because sigils are always
compile-time literals. It is probably fine to enforce a given format there
rather than multiple ones.

-- 
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/CAGnRm4JNeGkCNW_6ic2XkxTkFV3uyMT%2B3EZYJuguhzzZfpOnpQ%40mail.gmail.com.

Reply via email to