Post

Replies

Boosts

Views

Activity

Reply to Question about coding style guide at Apple with continue and break keywords
Interesting, thanks for your help so far. If the alternative would be less clear (to the axe-wielding psychopath), then break and continue are fine. I know break and continue are not always the best choice and I fully understand why they wouldn't be. The discussion I was having with my professor was that she said they are never useable and outdated, thus forbidding us from using them which I had issues with, largely consisting of me referencing Linus' Linux style guide and his (in my opinion very valid) issues with too many indentations. Also don't worry, I am a first year student but I have not just started learning Computer Science. I am happy to hold a discussion at a detailed level (that is what I will learn the most from)
Nov ’23
Reply to Question about coding style guide at Apple with continue and break keywords
Thanks for your answer. I know style guides are available online, the lack of one for apple has brought me here. I checked google's style guide which did not mention these keywords. And yes, this entire post asking why these things might be discouraged because I have not gotten a to me valid answer from my professor except for that it is not necessary to use them (which doesn't explain why it is not allowed). If there is no reason why it would be bad to use, I also learn something so again I would really appreciate a response.
Nov ’23