Y
Hacker News
new
|
ask
|
show
|
jobs
by
codedokode
3213 days ago
I don't think it is beautiful. This fills program with lots of unnecessary `if`s for checking results of each call. Also, it prevents one from chaining functions like a(b(x)).
1 comments
fiatjaf
3213 days ago
Yeah, you're right. Not beautiful and prevents chaining. But works like a charm, don't you think?
Chaining functions is for functional people. Go is proudly imperative.
link
Chaining functions is for functional people. Go is proudly imperative.