|
|
|
|
|
by 19eightyfour
3280 days ago
|
|
I had a bit of a play around with it. It's pretty powerful being able to see <func name> <params type> <return type> in one line ( or possibly multi line ) It really hammers home the concept that a function is a transformation, and of what into what. And I think this syntax would probably encourage pure functions. And it's so useful to allocate the return in the top line. I really like go. |
|
Named returns are a Go thing mainly because of defer.