We discussed it internally and the only concern at the moment is if it
won't look inconsistent if we have ~UTC but still keep ~D / ~T / ~N.

On Tue, May 16, 2023 at 9:59 AM Wojtek Mach <[email protected]> wrote:

> Hi, I'd like to propose deprecating ~U in favour of ~UTC.
>
> I don't think the change would necessarily increase readability of
> existing code given the common datetime format. I think the advantage is
> discoverability, if we look at list of available sigils or Kernel functions
> in general, this one will stand out and be immediately obvious what it
> does. Another way to look at it, if multi-letter sigils were possible when
> ~U was introduced, I think it would have been ~UTC all along.
>
> This is just a rename (with deprecation), there's no difference from ~U.
>
> Here's an example:
>
>     ~UTC[2023-01-01 09:00:00Z]
>
> The trailing "Z" is somewhat redundant given we have the ~UTC in front but
> I think that's OK. Personally, I would not be against dropping it but I
> haven't thought it through so I'm not advocating for it either.
>
> --
> 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/9268db40-e21c-4d8e-b9c9-a5b79f8bb0f9n%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/9268db40-e21c-4d8e-b9c9-a5b79f8bb0f9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAGnRm4JX4aRD9V7kb6uPowKnU5knbb_oXEyyekhQi%3DHeNLzQjA%40mail.gmail.com.

Reply via email to