3 ms·
> Who loses by allowing users to do what they want? Everyone else who looks at your code who would have preferred them. I dabble with both Go and Haskell, and
by losvedir 12y ago
> Who loses by allowing users to do what they want?
Everyone else who looks at your code who would have preferred them.
I dabble with both Go and Haskell, and this seems like the best of both worlds: from Go they enforce a uniform standard across libraries, coworkers' code, etc, and from Haskell, they're adopting the philosophy that "types are documentation".
I, too, would be a little annoyed at documenting lambdas, like this, but I think it's eminently reasonable to require it for all top-level function definitions. And it sounds like from another comment here, that that's the case. :)
- kazagistar 12y agoIt seems you could look at unannotated code with a tool which gives you inferred annotations.