Skip to content
Snippets Groups Projects
  • Dominik Honnef's avatar
    22f1cc95
    replace unreachable returns with panics · 22f1cc95
    Dominik Honnef authored
    Not only is this a more common idiom, it'll make finding bugs easier,
    and it'll make porting to Go 1.1 easier.
    
    Go 1.1 will not require the final return or panic because it has a
    notion of terminating statements.
    22f1cc95
    History
    replace unreachable returns with panics
    Dominik Honnef authored
    Not only is this a more common idiom, it'll make finding bugs easier,
    and it'll make porting to Go 1.1 easier.
    
    Go 1.1 will not require the final return or panic because it has a
    notion of terminating statements.