March 2017
Intermediate to advanced
226 pages
5h 13m
English
Swift offers special bookmarking keywords to support code organization:
You can document code issues by adding TODO: and FIXME: comments.
You can use MARK: to subdivide your code’s named sections.
Here are examples of what these bookmarks look like in code:
| | // TODO: swift-3-indexing-model - add docs |
| | |
| | // TODO: (TBD) Add canary to array |
| | // Putting a canary at the end of the array |
| | // in checked builds might be a good idea |
| | |
| | // TODO: Optimize where `C` is a `ContiguousArrayBuffer`. |
| | |
| | // FIXME: (Fixme) Add tests (since the `count` has been added) |
| | |
| | // FIXME: (Issue) This section is taking too many cycles. |
| | // (Does this need `redraw` content mode?) |
| | |
| | // MARK: - Collection - |
Xcode automatically ...
Read now
Unlock full access