3 ms·
Yet here we have an example of bad developer ergonomics that so frustrates one developer that they are willing to use whatever bonkers syntax they can get the p
by phlakaton 3y ago
Yet here we have an example of bad developer ergonomics that so frustrates one developer that they are willing to use whatever bonkers syntax they can get the parser to choke down, and build an AST transformer for Go, to try to get something remotely approximating sane for a single common case.
Which is saying nothing of Go libraries heavily relying on comment-based programming (err, sorry, we call them "struct tags") to generate boilerplate. The language is successful, but "expense of developer ergonomics" is an understatement.
- skybrian 3y agoThe AST fix is trivial. The key is getting consensus to do it. Without consensus you get a dozen different macros that do more-or-less the same thing. It seems like a language change would be good; it’s just taking longer than it should.