DEV Community

Discussion on: I'm a Swift Native Speaker, Ask Me Anything!

Collapse
 
ikemkrueger profile image
Ikem Krueger • Edited

Python has „dir(object)“ to show what properties and methods an object has, and „help(object)“ to show the „docstring“ (the first comment after the object defintion, which documents the object). Is there something similar for the Swift REPL?

Collapse
 
nunovieira profile image
Nuno Vieira

Hello Ikem!

I don't think there is a similar function to those in Swift, at least I don't know! Correct me, someone, if I'm wrong!