Comment by lmz
You don't think there's a degree of difference between (valid email_t or null) and (valid char pointer or invalid char pointer)?
You don't think there's a degree of difference between (valid email_t or null) and (valid char pointer or invalid char pointer)?
There's a huge difference. One is an email_t to validate and one is a char* to validate.
^ Weaken the post-condition. In some contexts null might be close enough for Maybe. But is Maybe itself even good enough? This is where the article falls short. It might be good (the enemy of perfect), but it ain't PdV.