Skip to content

try without catch should be bannedΒ #42

@SonOfLilit

Description

@SonOfLilit

This is a serious gotcha that a style guide would do well to document (and forbid):

jashkenas/coffeescript#3958 (comment)

try 1/0

suppresses the exception.

I propose amending Exceptions to say "Do not suppress exceptions. Do not use try without catch nor finally, which is an undocumented and surprising way to suppress exceptions."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions