Its ok to use semicolon?

Well as others have said go fmt will get rid of them anyway. If you like them, that’s great, but when working with others it’s important to try to write idiomatic code, just like you can construct all kinds of “weird” sentences in English that people will likely understand. They may understand you, but it will sound odd and will affect their opinion of you.

If you are a contributor on a project of > 1, then it’s also important to follow standards so others can quickly pick up code and understand it. Of course that’s why we use auto-formatters, so we don’t spend precious time talking about things like semicolons when they don’t actually affect the program.

1 Like