Elixir: Trivial name change suggestion

Created on 10 May 2019  路  2Comments  路  Source: elixir-lang/elixir

(Dynamic)Supervisor.which_children is a misleading name, as it implies that a degree of filtering is available: "which children like ice cream?"

Could I suggest list_children or simply children as a preferred alias?

Most helpful comment

Your thumbnail picture makes it look like _you_ like ice cream, anyway... :)

All 2 comments

Unfortunately we are just sticking with the names from OTP. In particular, OTP requires this exact function to exist in order to perform hot code upgrades. We could duplicate the API but I am not sure if that would be worth it. If it wasn't for the OTP requirement, I agree we should change it.

Thanks Dave!

Your thumbnail picture makes it look like _you_ like ice cream, anyway... :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jdeisenberg picture jdeisenberg  路  4Comments

LucianaMarques picture LucianaMarques  路  3Comments

Paddy3118 picture Paddy3118  路  3Comments

shadowfacts picture shadowfacts  路  3Comments

andrewcottage picture andrewcottage  路  3Comments