by magicalhippo · 6y ago · 0 comments
It also usually helps to make the code more self-documenting
Re: self-documenting, certainly sometimes (I mean, you shouldn't play code golf...), but in this case the code in question was:
2218 if (!valid_localpart(maddr->user) ||
2219 !valid_domainpart(maddr->domain)) {
....
2234 return (0);
2235 }
2236
2237 return (1);
It's not obvious to me what you would name the intermediate booleans that would be more self-documenting than the function names used there.