Hi, Pyret developer here (I hack on error messages)! If anyone has any questions, I’ll do my best to answer or grab someone who can!
A couple questions, about the check and where blocks:
check, where and examples blocks all exist to support the ‘examples’ and ‘testing’ phases of How to Design Program’s functional design recipe. The placeholder expression syntax (...) and doc blocks are other features that Pyret has to encourage the design recipe.
Testing statements are executed in the order they appear in the program alongside other top-level expressions. If you run:
The result is that 1, 2, and 3 are printed (in that order).
Interesting. For the where expressions on function definition: are those executed when the function definition is first encountered, or when the function itself is first executed?
Interesting how a language that so many seem to either loathe, love, or find utterly boring keeps inspiring new tools and paradigms all the time.
Must be something to it, despite all the naysayers.