2 ms·
I like the idea of the where clause to include tests.
by gigatexal 5y ago
I like the idea of the where clause to include tests.
- xpe 5y agoI don't care for the name "where" since it makes me think that is is a place to define bindings, like Haskell. I would prefer a term like "expect" or "tests".
- skrishnamurthi 5y agoIt doesn't read fluidly. We care a lot about how our programs are verbalized. We were well aware of the Haskell use, but most of our users have not seen or even heard of Haskell before. So that's not a real problem here. People who don't have Haskell experience find it utterly unsurprising that what follows `where` are the examples/tests. So I think your expectation is being set overly by your Haskell experience.