Open Qpupier opened 4 months ago
I'd be very curious to know an official opinion on the matter.
The norm (v4) III.2 (Formatting) states: "One instruction per line." I think the use of the word "instruction" is confusion and perhaps should be "statement"?
return(function_call(), 0);
This is one statement (return) containing two expressions.
if (ft_isprint(c) && ft_isdigit(c))
This is also one statement (if) containing two expressions.
if (ft_isprint(c), ft_isdigit(c))
Same again (silly but norm friendly).
My thoughts:
return (printf("OK\n"), 0);
isn't too bad.
Description Multiple instructions in a
return
don't make an errorExemple
This file is good with the norminette but it shouldn't.
Additional infos norminette 3.3.55