Curious: Is Playground an Interpreter?

Hi. Playground displays the values right away without compiling.

Is it an interpreter?


Thank you in advance.

God bless, Matthew 16:18

Answered by KMT in 343755022

>Is it an interpreter?


Not exactly - see https://stackoverflow.com/questions/51362893/change-in-xcode-10-playgrounds-variable-initialization-change-are-xcode-10-play/52489526


BTW, Playgrounds forum is over there...

________________

Tags: Matthew 6:5-15 NIV

Yes it is.


You can see that


testMe()
func testMe() {
    print("Tested")
}


will fail.


If you want some reading:

w ww.speirs.org/blog/2016/6/17/thoughts-on-swift-playgrounds

Accepted Answer

>Is it an interpreter?


Not exactly - see https://stackoverflow.com/questions/51362893/change-in-xcode-10-playgrounds-variable-initialization-change-are-xcode-10-play/52489526


BTW, Playgrounds forum is over there...

________________

Tags: Matthew 6:5-15 NIV

Curious: Is Playground an Interpreter?
 
 
Q