[Proposal] Add Kernel.get_in/1

37 views
Skip to first unread message

Marc-André Lafortune

unread,
Jan 28, 2022, 10:52:00 PM1/28/22
to elixir-lang-core
There is `pop_in/2` and its macro form `/2`
There is `put_in/3` and its macro form `/2`
There is `update_in/3` and its macro form `/2`
There is `get_and_update_in/3` and its macro form `/2`
There is `get_in/2` but no macro form `/1`. Could we please add `get_in/1`?

Marc-André Lafortune

unread,
Jan 28, 2022, 11:59:18 PM1/28/22
to elixir-lang-core

I just remembered that `nil[:x]` works, so it's probably just nicer to write `data[:foo][:bar]`; let's forget about this 😅
Reply all
Reply to author
Forward
0 new messages