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

DEvil0000 picture DEvil0000  路  3Comments

andrewcottage picture andrewcottage  路  3Comments

GianFF picture GianFF  路  3Comments

sashaafm picture sashaafm  路  3Comments

shadowfacts picture shadowfacts  路  3Comments