Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use @spec as a public API declaration at the top of the module by bunching them together away from the functions themselves.


I prefer to have my specs as close to the function as possible :)


Open your mind.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: