Re:Pyret: A new programming language from the creators of Ra...
by skrishnamurthi on Saturday November 09, 2013 @01:30PM
(#6702523)
You don't have to put the tests right in the middle of code. The `where` form goes with the definition, but a `check` form can float freely. So if you prefer a <Lang>Unit style of testing, where your tests reside in a separate file, you can do that with `check` blocks just fine.
However, the `where` tests play into the type-inference story for the language!
However, the `where` tests play into the type-inference story for the language!