nus-cs2103-AY2324S1 / forum

10 stars 0 forks source link

Question on default branch #559

Closed A1WAYSD closed 9 months ago

A1WAYSD commented 9 months ago

Hi, may I ask if missing default branch in switch can be considered as coding standard violation? Since in coding standard it does state the format with default but doesn't explicitly mention.. Or shall we identify it as only coding quality problem? Thank you!

image
damithc commented 9 months ago

@A1WAYSD No, the coding standard does not enforce a default branch for switch statements.

A1WAYSD commented 9 months ago

@damithc Okay Thanks prof!