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.

Reply via email to