It's only an incremental move in the right direction, but a good one. I am
strongly in favor of this proposal.

-bt

On Tue, May 16, 2023 at 3:59 AM Wojtek Mach <woj...@wojtekmach.pl> 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 elixir-lang-core+unsubscr...@googlegroups.com.
> 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>
> .
>


-- 

Regards,
Bruce Tate
CEO

<https://bowtie.mailbutler.io/tracking/hit/f8218219-d2a8-4de4-9fef-1cdde6e723f6/c7c97460-016e-45fb-a4ab-0a70318c7b97>

Groxio, LLC.
512.799.9366
br...@grox.io
grox.io

-- 
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-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAFXvW-69rYi-orYWQHAS9TJz4HnNyVmfwdbjHXZuWpz%3DpprqVA%40mail.gmail.com.

Reply via email to