-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
Can we have something like say () +>
to denote a void function?
Often I use functions as simple code blocks where return statements are redundant and sometimes can cause unexpected bugs when calling the code block.
This becomes an issue sometimes when working with code that deals with something like jquery prototype
As a solution most of the times i have to use empty return statements in functions that would be void
So, I'd love to have a syntax specially for void functions