Re:Context should go away for Go 2
by wbl on Tuesday January 21, 2025 @08:27PM
(#42787591)
Basically you'd be asking for inferring a record type largely transparently. That's going to quickly explode to the most naive form because it's very hard to tell what could be called, especially in Go.
[ Parent
| on HN ]
I don't think you could fit it to Go, no.
But see https://hackage.haskell.org/package/effectful for work in the general area that seems rather promising.