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

heiko-braun picture heiko-braun  路  27Comments

josevalim picture josevalim  路  30Comments

dmorneau picture dmorneau  路  30Comments

josevalim picture josevalim  路  31Comments

josevalim picture josevalim  路  33Comments