logoalt Hacker News

lpillast Sunday at 9:02 AM1 replyview on HN

Yes, one would use higher order functions, as is common in Erlang, Elixir, OCaml, Elm, etc.


Replies

shirogane86xlast Sunday at 3:50 PM

At least half of those languages (Elixir and OCaml) have some sort of mechanism for ad hoc polymorphism (elixir has behaviors and protocols, OCaml has higher order modules) so I feel like the comparison doesn't work that well personally

show 1 reply