Skip to content

Add a way to suppress unused-variable warnings #832

Closed
@catamorphism

Description

@catamorphism

Sometimes, a function needs to have an argument that it doesn't use (for example, if it's passed to foldl or another higher-order function). In this case, it would be good to have a naming convention for unused arguments that would suppress the "unused variable" warning on a case-by-case basis. One example is "begin the name with an _". So fn (_x:int) {} wouldn't generate any warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions