Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

somewhat OT but: ended up in the 'go/constant' package's source from there somehow and there saw the comment on "Prevent external implementations" [1] regarding using a non-exported function in the definition of 'constant.Value' interface.

Here is an external implementation of constant.Value:

https://play.golang.org/p/3dVFCT2-kN8

[1]: https://golang.org/src/go/constant/value.go?#L58



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: