Re: [elixir-core:11355] Maps and merge behaviour in Config

2023-04-28 Thread José Valim
A PR for supporting keywords on the default handler is welcome. :) On Sat, Apr 29, 2023 at 00:43 Christopher Keele wrote: > I can second that this has caught me off-guard before as well, and keyword > list support would be a welcome addition. > > > It can be confusing if folks then use the

Re: [elixir-core:11355] Maps and merge behaviour in Config

2023-04-28 Thread Christopher Keele
I can second that this has caught me off-guard before as well, and keyword list support would be a welcome addition. > It can be confusing if folks then use the direct Erlang APIs. I think this could be circumvented for now by only describing the proposed keyword list support in the boot

[elixir-core:11355] Re: [BUG ??] unexpected behaviour when appending tuple to a list

2023-04-28 Thread Daniel Kukula
Looks like it works with any data structure - producing improper lists On Friday, April 28, 2023 at 2:55:34 PM UTC+2 Daniel Kukula wrote: > I accidentaly used Keyword.pop instead of Keyword.take and my code did not > catched it because you can append a tuple to a list - is this expected >

[elixir-core:11353] [BUG ??] unexpected behaviour when appending tuple to a list

2023-04-28 Thread Daniel Kukula
I accidentaly used Keyword.pop instead of Keyword.take and my code did not catched it because you can append a tuple to a list - is this expected behaviour ? iex [14:50 :: 1] > [1,2] ++ {3,4} [1, 2 | {3, 4}] iex [14:50 :: 2] > {3,4} ++ [1,2] ** (ArgumentError) argument error

Re: [elixir-core:11353] Maps and merge behaviour in Config

2023-04-28 Thread José Valim
I am wondering if we should allow keyword lists in those cases instead but it can be confusing if folks then use the direct Erlang APIs. On Fri, Apr 28, 2023 at 3:02 PM lostko...@gmail.com wrote: > Trying this again as my last 3 answers got deleted: > > For example here: > > config :logger,

[elixir-core:11352] Re: [Proposal] Add support for --repeat to mix test.

2023-04-28 Thread Mario Olivio Flores
I think `mix test --listen-on-stdin` might meet your use case. From the docs: --listen-on-stdin - runs tests, and then listens on stdin. It will re-run tests once a newline is received. See the "File system watchers" section below I setup an alias for this: alias mtl="PORT=4006 mix test

Re: [elixir-core:11354] Maps and merge behaviour in Config

2023-04-28 Thread lostko...@gmail.com
Trying this again as my last 3 answers got deleted: For example here: config :logger, :default_handler, config: %{ file: ~c"system.log", filesync_repeat_interval: 5000, file_check: 5000, max_no_bytes: 10_000_000, max_no_files: 5 } ... as described in