Programming in Swift: Functions and Types · Methods |

This is a companion discussion topic for the original entry at

Hello, could you explain the usage of ‘self’ here? What is it/why is it used?


1 Like

As this is a fundamentals tutorial, it would have been good if you explained things in more detail such as what exactly is UInt? I know what self refers to and the need for it but I am also confused about the usage of it here. Not everyone watching this tutorial is a developer or familiar with all programming concepts. Some of us watching this are trying to learn how to code. I also do not believe it was covered in previous tutorials. Some subjects are really rushed in your tutorials compared to other instructors. It would be more beneficial if you explained things rather than assuming we know them already.