Hi, a relatively new user of Elixir here.
So, as far as i realised, keyword lists can be simply inserted into the function as the last argument without using the brackets syntax, which i tried to do today, when working with some gen_tcp in my GenServer. FYI i run gentoo and am at v1.17.2.
When ran in the usual way, i.e. ;gen_tcp.connect(~c"example.com",80,[:binary, packet: 0]) everything is fine, but as soon as i tru to use the syntactic sugar provided to me by the language, it fails.
From the error message i have read, apparently the connect/4 is called and {packet: 0} gets passed as a timeout parameter.
So the question is… Is it a bug? Am i not understanding the syntactic sugar mechanism well enough?
Thank you for the help in advance
PS: Updated the question title as the problem was moslty in my understanding of the KeywordList syntax sugar