Programming in Swift: Fundamentals · Tuples | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5539282-programming-in-swift-fundamentals/lessons/11

Is there a reason we’d further instantiate (did I use that right?) studentData.name into theName constant?
Why wouldn’t we just use studentData.name in our code whenever we want to call it?

…or was this just to show it being called?

(Loving this course, btw, thank you!)

Hey @iusebiro: Thanks for the kind words! Yes, you can use studentData.name wherever you like in your code; the example in this video is just to show that we’re instantiating a new constant and can assign the contents of studentData.name to that new constant as if it were just a regular value.

1 Like

At min 3.35 I assume you meant “type inference” not “type interpolation”. By the way great course indeed :+1:

Ah! Yes, thank you. Words are hard. I’m glad you’re enjoying the course.