[SR-3281] Update swift man page#10241
Conversation
|
Thank you for picking this up! 💖 You should notify swift-dev and maybe swift-evolution about this. |
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Let's drop the "Apple Inc" part.
There was a problem hiding this comment.
"General purpose programming language" is super vague though...
Anyone else has other suggestions?
Another suggestion to also remove " by Apple Inc." with good reasons and so it will be removed.
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Maybe also add:
To execute a swift program:
swift program.swift -- <args>
xwu
left a comment
There was a problem hiding this comment.
Great improvement, bravo for taking the time to put this together. I've gone into editor mode and made some nitpicky comments.
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Below, the spelling is "general-purpose"; here, it is "general purpose"--you'll need to pick one.
May I also suggest following the example of Python, Ruby, LLDB, and others in using two-dashes (i.e., "swift -- General-purpose programming language")?
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Although "Swift Package Manager" is capitalized throughout, here it's just "Swift compiler" without a capital C (as evidenced by the style used in swift -help and swift package -help).
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
I'm being very nitpicky, but:
The original text was: "The full list of supported options..." If you're going to drop "full," then probably best if it's simply "A list of supported options..." (or, restore the original).
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
I wonder if the text from "To achieve this goal..." to the end of this section is really doing much for the man page. I don't see other examples where this level of detail as to design intent is recorded in the "Description" section of other man pages.
There was a problem hiding this comment.
Indeed, debatable.
Ruby does something quite different, however. It describes what the language is (e.g., garbage collected). This text here describes what the language should/must/will be (e.g., should be safe, will feel strict, must be comparable). It is a description of the Swift project, but not really a description of the Swift language.
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Nit here: That comma between "programming" and "to mobile" shouldn't be there. I know you've transposed this text from elsewhere, but nonetheless it's an extraneous comma.
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
I think the fact that Swift uses Jira might be relatively less relevant information for a man page. Can I suggest:
"Reporting bugs is a great way for anyone to help improve Swift. The bug tracker for the open-source project is located at Lhttps://bugs.swift.org."
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
I wonder if the non-link text in this section could be either made more informative or removed.
For instance, "More information and resources" is a longer way of saying "See also" and "are available online" is immediately self-evident from the links that follow. Likewise, the "developer.apple.com" link is clearly to an Apple Developer resource, and the "github.com" links are clearly to GitHub. Perhaps the links could be accompanied by some concise description of what's there, or alternatively if that seems redundant, just the links can stand alone.
|
on Tue Jun 13 2017, nate <notifications-AT-github.com> wrote:
contraultra commented on this pull request.
> =head1 NAME
-swift - the amazingly new programming language
+swift - General purpose programming language by Apple Inc.
"General purpose programming language" is super vague though...
Anyone else has other suggestions?
In typical fashion I'll suggest starting with simply “programming
language” and then asking if there's anything more you actually want to
express about it.
…--
-Dave
|
xwu
left a comment
There was a problem hiding this comment.
Just some straggling follow-on comments.
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Are these best as headings, or as @CodaFi experimented with, might they work better as bolded text? After comparing the two, I'm inclined to think the latter. In part, I think it's because these don't fit in with the other headings (Synopsis, Description, Bugs, See Also, Home Page...Expressive (huh?)).
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Is there any info on the Apple Developer Swift page that a user should "see also" not adequately covered elsewhere? If not, this link might be dispensable, being vendor-specific and all.
There was a problem hiding this comment.
Personally, I find the Swift - Resources - Apple Developer page linked in https://developer.apple.com/swift/ very useful. Any further thoughts?
There was a problem hiding this comment.
@contraultra Wow, yes, that's very useful! It's unlikely that any but the most thorough reader would find that link, though, from the page currently linked to. How would you feel about linking to that page instead and titling this "Apple Developer Resources"?
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
I'd suggest "Code Repositories" or "Git Repositories" here. Clearly, these are links to GitHub. A person who doesn't know what GitHub is can't benefit from the current heading; a person who does know what GitHub is won't benefit from any heading.
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Last nit, I promise: Probably best if not both bold and all-caps? Anyway, this is awesome, and thanks for humoring me.
|
The feedback period for this pull request attempt has ended. Thank you to those who participated in the feedback. Based on the feedback received, I have included most suggestions and this is the final draft. Please review. |
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
Is there a technical reason for this not to be a fully-qualified link, e.g.: https://bugreport.apple.com ?
|
Pinging @DougGregor, @CodaFi, or @adrian-prantl to review. |
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
You should address Dave's comment about this description.
There was a problem hiding this comment.
How's "high-performance system programming language" from the first line of the README instead?
There was a problem hiding this comment.
high-performance system programming language
The second half of that description contradicts the rest of this document.
docs/tools/swift.pod
Outdated
There was a problem hiding this comment.
This should be qualified with an L<> or formatted like @adrian-prantl said.
For future reference, please refer to the following man pages: - PERLDOC(1) - PERLPODSPEC(1) - PODCHECKER(1)
|
@CodaFi, I've made changes based on your feedback. Instead of
it's now
|
|
Beautiful. I think this is light years ahead of what was here before. ⛵️ @swift-ci please smoke test and merge |
Attempt at SR-3281. (cc @CodaFi 😃)
DESCRIPTIONsection is from Swift.org - About Swift.BUGSsection is from Swift.org - Contributing.Feedback is welcome.