Skip to content

Conversation

@MainShayne233
Copy link
Contributor

Was poking around in the Macro module and realized these functions were missing @specs.

@MainShayne233 MainShayne233 force-pushed the master branch 4 times, most recently from b6192eb to a02a838 Compare December 17, 2018 04:54
@MainShayne233 MainShayne233 changed the title Add missing typespecs to Macro.underscore/1 and Macro.do_underscore/1 Add missing typespecs to Macro.underscore/1 and Macro.do_underscore/2 Dec 17, 2018
Copy link
Member

@josevalim josevalim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MainShayne233! We don't @spec private functions, so I removed that one and kept the public one. Thanks!

@josevalim josevalim merged commit fb97713 into elixir-lang:master Dec 17, 2018
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@MainShayne233
Copy link
Contributor Author

@josevalim Awesome! Thanks for the assist-commit!

Out of curiosity, what are the reasons to not @spec private functions? Is it useless beyond documentation?

@josevalim
Copy link
Member

We use @spec mostly for documentation, so it wouldn't apply for private functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants