4 ms·
> more modern languages which use return values for error signaling I must be missing something.. Returning a value in Go for error signaling is the way to sig
by gorhill 12y ago
> more modern languages which use return values for error signaling
I must be missing something.. Returning a value in Go for error signaling is the way to signal errors in Go.
- masklinn 12y ago> I must be missing something.. Returning a value in Go for error signaling is the way to signal errors in Go. Yes? That's the point, I'm comparing it to more modern languages which signal error "the same way", by opposition to languages implementing different high-level methods of error signaling. The clause is there to explicitly point out that I'm not considering or talking about exceptions and conditions-based error signaling. Maybe it'd have been clearer if I'd written "languages which also use return values"?
- lazzlazzlazz 12y agoYeah, I parsed this incorrectly as well. It was an ambiguous statement. You posted a while back that "scope inference (in Python) sucks". Could you expand on that. I know it's totally unrelated to this thread but I was really hoping to understand what you meant. Thanks!