21 karma · joined Aug 10, 2022 (4y ago) · 9 submissions
comment 3y ago · link · parent
This seems like it’s mostly syntactic sugar for assertions, keeping them at the interfaces of the function (in and out).
It can also be sometimes useful to have these conditions right there alongside the implementation and not just somewhere else in your unit tests.
comment 4y ago · link · parent
English is the JavaScript of human languages.
comment 4y ago · link · parent
The Perl community themselves eventually extended the motto to "There's more than one way to do it, but sometimes consistency is not a bad thing either"