On Wed, Nov 9, 2022, 20:47 Ian Lance Taylor <i...@golang.org> wrote:

> On Wed, Nov 9, 2022 at 10:40 AM Gorka Guardiola <pau...@gmail.com> wrote:
>
> Seems related to https://go.dev/issue/54361, although due to inject it
> is not the same.
>

I hadn't seen that proposal.

>
It is similar in the sense that it is a more powerful return, but this is
much more limited and restricted (1 call level explicitly annotated in the
function call vs. returning N levels to a label/function name). In that
sense it is a subset of what can be done with that change but more
structured. I feel it could be easier to reason about.

The changes to the language, runtime, compiler... are also quite more
limited. The bad part is the need for two new reserved words.

G.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CACm3i_hyfB2SSXGZ5NjNNW%2BBpzB3xgiqkTOZMVjRowi2uV6u0A%40mail.gmail.com.

Reply via email to