Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With tests? Or just a schema definition?


Tests are a type of runtime validation, they require literal execution of your code to perform the validation.

This supports static verification of queries, your code doesn't need to run to validate the type is correct.

I don't care to argue either way for tests vs static types (I write both frankly), just want the distinction to be clear.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: