Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlexander Lee
5,964 PointsAren't those operators at 1:40-ish actually called compound assignment operators, and not unary?
2 Answers
Pasan Premaratne
Treehouse TeacherYou're right. Looks like they changed this naming in Swift 3.0.1. I'll update the course. Thanks!!
William Squires
Courses Plus Student 2,817 PointsAnd the video forgot to mention the unary '-' operator which changes the sign of a number. i.e.
var x = 3 let minusX = -x // = -3
SivaKumar Kataru
2,386 PointsSivaKumar Kataru
2,386 PointsAlso, Apple has removed the legacy UNARY operators ++ and -- in swift 3.0 .