|
|
|
|
|
by nepthar
383 days ago
|
|
Yeah, this is the single biggest reason I avoid go - I just don't want to clutter my "happy path" logic. It makes things harder to reason about. "Errors are values", sure. Numbers are values and Lists are values. I use them differently, though. I wonder if there could be "stupid" preprocessing step where I could unclutter go code, where you'd make a new token like "?=", that got replaced before compile time. For instance, "x ?= function.call();" would expand to "x, err := function.call(); if (err != nil) return err;" |
|