4 ms·
It's a weird call-out in the post, especially since their example is a non-exported function.
by tptacek 5y ago
It's a weird call-out in the post, especially since their example is a non-exported function.
- typesanitizer 5y agoAh, making it non-exported was an unintentional mistake. I've pushed a fix marking it as exported with an EDIT note.
- tptacek 5y agoFor the substantive critique: it's also a bit weird because it's pretty clear what the reason for it is: it's a simplifying convention, like the capital-letters-to-export thing (which I'm partial to, since it's a convention I use in my C code). It seems reasonable to have preferences in the other direction, but (and I'm not trying to argue that you wrote it this way) not to suggest that it's somehow a flaw in the language.