Re: [elixir-core:9550] [Proposal] Add Map.put_if/4

2020-06-07 Thread Bruce Tate
I like the idea as well. And I like the name maybe_update. -bt On Fri, Jun 5, 2020 at 11:55 AM Davide Bettio wrote: > Hello, > > I work with Riccardo so I frequently experience the same issue. > I really like José and Piotr solutions, however I'd like to point out that > they might introduce

Re: [elixir-core:9550] [Proposal] Add Map.put_if/4

2020-06-05 Thread Davide Bettio
Hello, I work with Riccardo so I frequently experience the same issue. I really like José and Piotr solutions, however I'd like to point out that they might introduce some clutter and in real world code they might cause long lines that are broken from the formatter, which can be ugly when using