Which is the notation for functions with several arities?

Is there a convention for how to refer to functions that have the same name but different arities?

For example, we have Phoenix.Socket.connect/2 and Phoenix.Socket.connect/3. If I want to make a general statement about them, like "you authorize a WS connection in Phoenix.Socket.connect/???", which notation do you use to refer to both of them at the same time?

I am tentatively writing Phoenix.Socket.connect/2,3.

This is the official way, this is also supported and understood by ex_doc as far as I know.

Also there is a convention to write foo/* for all foo of any arity.

3 Likes