[elixir-core:9531] [Proposal] Support additional time units

2020-06-02 Thread Parker Selbert
*Problem* Functions that convert or work with time units, i.e. `System.convert_time_unit/1`, `DateTime.add/3` and `Time.add/3` are limited to working with a subset of possible time units. The current subset of *named units* includes `:second`, `:millisecond`, `:microsecond`, and

Re: [elixir-core:8901] Re: [Proposal] identity function

2019-07-02 Thread Parker Selbert
I’m in favor of the addition overall. The specific function name matters less to me, /1 or /1 would be fine. > On Jul 2, 2019, at 16:02, Bruce Tate wrote: > > I could learn to like /1, and also think that /1 fits Elixir's style > of abbreviation. My vote is for either one of those. > > -bt

Re: [elixir-core:8424] [Proposal] Deprecate unless-else

2019-01-03 Thread Parker Selbert
If anything this seems more suited to be a warning rather than something deprecated and slated for removal. It would be similar to how the compiler suggests pattern matching on an empty list instead of length(list). The difference being that there are performance differences for pattern

Re: [elixir-core:7273] [Proposal] Add MapSet.intersect?/2 to check for set intersection

2017-07-13 Thread Parker Selbert
www.plataformatec.com.br[1] > Skype: jv.ptec > Founder and Director of R > > > > On Thu, Jul 13, 2017 at 4:45 PM, Parker Selbert <parker.selb...@gmail.com> > wrote:>> Recently I discovered an application bug that stemmed from the use > of MapSet.subset?/2. Th

[elixir-core:7272] [Proposal] Add MapSet.intersect?/2 to check for set intersection

2017-07-13 Thread Parker Selbert
Recently I discovered an application bug that stemmed from the use of MapSet.subset?/2. The code was attempting to check whether there was any overlap between two sets, but the use of subset?/2 is order dependent. The solution was to use MapSet.disjoint?/2 and check if the result was false,

Re: [elixir-core:7216] Re: Kernel.compare/2 and Comparable protocol

2017-06-16 Thread Parker Selbert
I'm strongly in favor of the proposal, it is an ideal use of protocols (and we aren't facing a non-BIF penalty). — Parker On Fri, Jun 16, 2017, at 03:51 PM, OvermindDL1 wrote: > Sounds like precisely what is needed. I'm all for it! > > > On Friday, June 16, 2017 at 2:16:59 PM UTC-6,

Re: [elixir-core:6383] Re: Deprecate 'single quotes for char lists'

2016-09-23 Thread Parker Selbert
Ever since getting involved in Elixir I have been relieved that there isn't any debate between ' and ", or remembering which supports interpolation. Learning the distinction between binaries and charlists is important when it comes to interfacing with Erlang modules, but that is something you do