DEV Community

David
David

Posted on • Originally published at davidturissini.com

2

What's with the Weird Elixir Function Names

Have you ever noticed that in all of the documentation related to Elixir, functions are referenced like function_name/2? This is by design- Elixir itself identifies functions by its name and the number of arguments it takes. The documentation, in turn, follows suite.

So, whenever you see Elixir docs (or, ahem, error pages) referencing function_name/2, you will know that it's referencing function_name that accepts 2 arguments.

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay