[swift-evolution] Pitch: Documentation access from the Swift REPL

Beta rwidmann at apple.com
Fri Jun 30 13:16:02 CDT 2017

Because this is a REPL change not a language change I recommend you report this as an enhancement request in a radar.

~Robert Widmann

> On Jun 8, 2017, at 10:40 PM, Roope Kangas via swift-evolution <swift-evolution at swift.org> wrote:
> I am new to Swift and just started learning but...
> When exploring standard library and the language it self from the REPL.
> Users currently need to switch between a browser to read documentation and the 
> REPL it self.
> What I would like to see in the REPL is behaviour like this:
>  1> :help print
>  	print(_:separator:terminator:)
>  	Writes the textual representations of the given items into the standard output.
>  	...
> This means some kind of nice textual version of what I find here:
> https://developer.apple.com/documentation/swift/1541053-print <https://developer.apple.com/documentation/swift/1541053-print>
> I see that in the source code this information is available 
> (https://github.com/apple/swift/blob/master/stdlib/public/core/Print.swift#L13 <https://github.com/apple/swift/blob/master/stdlib/public/core/Print.swift#L13>).
> And that in the playgrounds I can get this quick help. Would be really nice
> to access this from the REPL too.
> KR,
> --
> Roope Kangas
> http://fi.linkedin.com/in/roopekangas <http://fi.linkedin.com/in/roopekangas>_______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170630/9d664a30/attachment.html>

More information about the swift-evolution mailing list