Skip to content

Feature request: void function syntax #4041

@fa7ad

Description

@fa7ad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions