2 ms·
That's so true. It would be great to be able to have very limited / very short macros as a compromise. var a = n1; if a < n2 { a = n2 } vs
by robmccoll 8y ago
That's so true. It would be great to be able to have very limited / very short macros as a compromise.
var a = n1;
if a < n2 {
a = n2
}
vs.
var a = max(n1, n2)
without having to write and make a function call.
I still want something more powerful for error handling like a type that if it is ever assigned non-nil the method returns immediately.
var err autoreturn error
rslt, err = pkg.MaybeError()