documents about standard library in swift


(Qibo) #1

Hi,everyone,
On this https://github.com/apple/swift,
Documentation described
“Another source of documentation is the standard library itself, located in stdlib.
Much of the language is actually implemented in the library (including Int),
and the standard library gives some examples of what can be expressed today.”
Anyone knows where the stdlib documents is.
:slight_smile:

Brs
Bob


(Dmitri Gribenko) #2

Here are the sources:
https://github.com/apple/swift/tree/master/stdlib/public/core

Dmitri

···

On Tue, Feb 16, 2016 at 6:06 PM, Qibo via swift-users <swift-users@swift.org> wrote:

Hi,everyone,

On this https://github.com/apple/swift,

Documentation described

“Another source of documentation is the standard library itself, located in
stdlib.

Much of the language is actually implemented in the library (including Int),

and the standard library gives some examples of what can be expressed
today.”

Anyone knows where the stdlib documents is.

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(Qibo) #3

Thank you, Dmitri,
In "/swift/docs", the documentation could be autogened, they will be in "_build/html".
The source of "swift/stdlib/public/core" is implement of standard library,
In "/swift/stdlib/ "is there some methods to autogen documentions like in "docs"?
Brs
Bob

-----邮件原件-----

···

发件人: Dmitri Gribenko [mailto:gribozavr@gmail.com]
发送时间: 2016年2月17日 10:08
收件人: Qibo
抄送: swift-users@swift.org
主题: Re: [swift-users] documents about standard library in swift

On Tue, Feb 16, 2016 at 6:06 PM, Qibo via swift-users <swift-users@swift.org> wrote:

Hi,everyone,

On this https://github.com/apple/swift,

Documentation described

“Another source of documentation is the standard library itself,
located in stdlib.

Much of the language is actually implemented in the library (including
Int),

and the standard library gives some examples of what can be expressed
today.”

Anyone knows where the stdlib documents is.

Here are the sources:
https://github.com/apple/swift/tree/master/stdlib/public/core

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(Dave Abrahams) #4

To be clear, the documentation being referred to is the source code of
the standard library itself, not the documents in that repository's
docs/ directory.

···

on Tue Feb 16 2016, Dmitri Gribenko <swift-users-AT-swift.org> wrote:

On Tue, Feb 16, 2016 at 6:06 PM, Qibo via swift-users > <swift-users@swift.org> wrote:

Hi,everyone,

On this https://github.com/apple/swift,

Documentation described

“Another source of documentation is the standard library itself, located in
stdlib.

Much of the language is actually implemented in the library (including Int),

and the standard library gives some examples of what can be expressed
today.”

Anyone knows where the stdlib documents is.

Here are the sources:
https://github.com/apple/swift/tree/master/stdlib/public/core

--
-Dave


(Dmitri Gribenko) #5

Thank you, Dmitri,
In "/swift/docs", the documentation could be autogened, they will be in "_build/html".

Right.

The source of "swift/stdlib/public/core" is implement of standard library,
In "/swift/stdlib/ "is there some methods to autogen documentions like in "docs"?

No, unfortunately there is no way to generate the documentation
locally. But you can find an online version here:
https://developer.apple.com/library/tvos/documentation/General/Reference/SwiftStandardLibraryReference/index.html

Dmitri

···

On Thu, Feb 18, 2016 at 5:00 PM, Qibo <qibo@huawei.com> wrote:

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/