nus-cs2113-AY1920S2 / forum

4 stars 0 forks source link

Inquiry on Coding Style of main function #25

Closed SibingWu closed 4 years ago

SibingWu commented 4 years ago

I wonder for good coding style, it is better to put the function definition before main function/where it is called or after?

damithc commented 4 years ago

As that aspect is not specified in the coding standard, you are free to choose your own, but apply in consistently throughout the code base.

SibingWu commented 4 years ago

As that aspect is not specified in the coding standard, you are free to choose your own, but apply in consistently throughout the code base.

Thank you so much! Confusion clarified.