3 ms·
> I understand your pain, but this is nowhere near a real issue for systems that Go is designed to help build. I spend most of my day designing and coding the
by thescrewdriver 12y ago
> I understand your pain, but this is nowhere near a real issue for systems that Go is designed to help build.
I spend most of my day designing and coding the sorts of systems which Go was designed to help build. I'll agree that this isn't a major issue, but it is affecting whether or not I actually enjoy using Go.
- laumars 12y agoI appreciate something like this is best served in the compiler, but would it not be possible to build your own function that provides this functionality?
- NateDad 12y agoSorta impossible. You can't suck values out of the current context, even with reflection. You always would need to pass values into a function, in which case you might as well use fmt.
- laumars 12y agoI suspected that might have been the case but I haven't played around with reflection enough personally. Shame :(