Skip to content

Simple syntax for procedures vs. functions #1836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rnpandya opened this issue Nov 8, 2011 · 2 comments
Closed

Simple syntax for procedures vs. functions #1836

rnpandya opened this issue Nov 8, 2011 · 2 comments

Comments

@rnpandya
Copy link

rnpandya commented Nov 8, 2011

A large fraction of my CoffeeScript functions don't return a value, and I frequently find myself adding "return" to avoid generating the code to construct a return value (e.g. if the last statement is a loop). It would be convenient, and would add useful documentation, if there were a very easy way to specify that a function did not return a value, e.g. using "-->" or "==>" instead of "->" and "=>".

@jashkenas
Copy link
Owner

This is a duplicate of several previous issues.

@TrevorBurnham
Copy link
Collaborator

Notably #899.

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

No branches or pull requests

3 participants