Is there a reason why break and continue need a space after it?
I can understand why return demands a space since you always have to return something, even if it's a (0). But on break and continue it's just odd to have a space and then a semicolon.
I tried to find an explanation but I couldn't find it. Couldn't break and continue be an exception?
The only reason is the one you mentionned, they are simply not an exception and fall under the "keyword" category.
I'll take it up to see if we want to change it.
https://github.com/42School/norminette/blob/a16b54923b3c459371342354eafc727a5eb70614/norminette/rules/check_expression_statement.py#L52-L53
Is there a reason why
break
andcontinue
need aspace
after it?I can understand why
return
demands a space since you always have to return something, even if it's a (0). But onbreak
andcontinue
it's just odd to have aspace
and then a semicolon.I tried to find an explanation but I couldn't find it. Couldn't
break
andcontinue
be an exception?