What is with people writing purposely flawed examples?
If you want to convince a general audience that your approach is worth the additional cognitive overhead then compare it with code that is equivalently robust, not some low effort straw-man example.