Re: [elixir-core:11226] [Proposal] Add macro is_real_map

2022-12-22 Thread Austin Ziegler
I think that this is an interesting idea, but as Enumerable is a protocol, it is possible to implement enumerability for any given struct, as `MapSet` is enumerable. This SO answer suggests

[elixir-core:11226] [Proposal] Add macro is_real_map

2022-12-21 Thread vtm
hey all, thanks for you work on such a beautiful lang. Small proposal. People sometimes get confused about data structures which based on maps. for instance: ``` iex(3)> {:ok, datetime} = DateTime.now("Etc/UTC") {:ok, ~U[2022-12-22 05:53:36.228720Z]} iex(5)> is_struct(datetime) true iex(6)> is_