I just noticed that when you check the online documentation for Foundation using the delicious Objective-C flavor, some values are no more the expected ones:
true if the item was copied successfully or the file manager’s delegate stopped the operation deliberately. Returns false if an error occurred.
Considering that a BOOL used to be YES or NO for the last quarter of a century, I have the following question:
[Q] What is the idea behind the disturbing changes of the Objective-C documentation?
Modern developer docs are created using DocC. That has a bunch of benefits, but it also has some limitations. One of those limitations is that there’s no direct syntax for inserting a Boolean value and have it automatically map to the user’s preferred language.
Personally my preferred way of dealing with that is to use Boolean, true, and false, so it’s clear that I’m talking about the abstract concept of a Boolean rather than any specific language. However, other folks have other opinions.
Clearly you have your own opinion about this and I recommend that you write that up as a Feedback Assistant report. Please post your bug number, just for the record.
Also, keep in mind that DocC is an open source tool, allowing you to have your own say in how it evolves. If you’d like to get involved, bounce over to the Development > DocC topic area on Swift Forums.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"