Some final comments
Working with someone else's code might be a difficult task; you have to figure out what is the logic of the previous developer and how you could change the code to fix a bug, for example. This is the reason why developers must think like a team, act as a team, and work in a team. What does this mean? As a part of our tasks, we should help the next developer by adding comments for them. Swift has its own features based on comments.
Firstly, an interesting part is that Swift allows nested multiline comments. It means that a comment like the following one is not going to stop before println
like the other languages do:
/* This code was removed due to it is a bit buggy /* for i in myArray { object.process(i) } */ println(myObject.description) ...
Get Swift 2 Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.