Hacker News new | ask | show | jobs
by ponsin 2127 days ago
how is that different than in c/c++ simply adding asserts at the start and end of functions?
1 comments

It's the same but it's a different switch to turn it on and off.

Having separate syntax is also very useful because it's much easier to see through my usual spaghetti to find what the code is actually supposed to do in the abstract (i.e. if the string should be a valid email, check it in the in {} clause rather than in the middle of the function)