8000 simplify the go code · Issue #64396 · golang/go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
simplify the go code #64396
Closed as not planned
Closed as not planned
@wiltchamberian

Description

@wiltchamberian

Proposal Details

as there is no exception primary like "try, catch" in go, the error processing code becomes tendious, why not add a new key word like "reif" (return if) , it performs like:
reif handleProcess();
which is equivalent to err:=handleProcess(); if (err!=nil) return

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0