Re:Elixir v1.20 released: now a gradually typed language
by kamma4434 on Friday June 05, 2026 @11:28AM
(#48413868)
What I mean is that it is harder for me to reason about. In Java you also use collection interfaces, but List<String> is a no brainer.
Re:Elixir v1.20 released: now a gradually typed language
by geokon on Saturday June 06, 2026 @05:37AM
(#48423128)
yeah, your overall point stands. Sometimes you can get a bit mixed up on "wait, does this take a File object or a string with the filename?". I guess my point was that because you program to interfaces this happens a bit less often than one would expect. If it can take a vector it can usually also take a list
The Clojure docs should be more straightforward about the interfaces that are available and targetted
You can still have a problem of not knowing which is required of an argument, but its usuallt clear contextually