swift-book icon indicating copy to clipboard operation
swift-book copied to clipboard

Operator Declarations link

Open endeavour42 opened this issue 4 years ago • 6 comments

Location

https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html

Description

https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html has this:

For information about the operators provided by the Swift standard library, including a complete list of the operator precedence groups and associativity settings, see Operator Declarations.

links to apple page. I believe it should be linked to a page hosted on docs.swift.org.

Correction

No response

endeavour42 avatar Nov 02 '22 20:11 endeavour42

What page do you think it should link to instead? There's no documentation on docs.swift.org for the Swift standard library.

amartini51 avatar Nov 02 '22 21:11 amartini51

A new page with contents matching https://developer.apple.com/documentation/swift/operator-declarations

endeavour42 avatar Nov 02 '22 21:11 endeavour42

Is this a standard library matter? E.g. to know that a + b * c means a + (b * c) and not (a + b) * c

endeavour42 avatar Nov 02 '22 21:11 endeavour42

I don't think a request to write new documentation for the Swift standard library, or to migrate the existing content is in scope here, since this repository is for "The Swift Programming Language". I'll mark this as an enhancement for now, and revisit.

amartini51 avatar Nov 02 '22 21:11 amartini51

Perhaps half of the stuff in there belongs to the language itself? How possible to have, say, "is" / "as" operators defined in standard library? or "=", or a ternary operator, probably a good half of the list.

endeavour42 avatar Nov 02 '22 23:11 endeavour42

Closing as not applicable to "The Swift Programming Language" because these operators aren't part of the language, and because the standard library operators are documented along with the rest of the standard library.

amartini51 avatar Aug 03 '23 21:08 amartini51