Replies: 1 comment
-
lol we definitely were not aware of that. I've added a correction to the transcript that will go out with next deploy, and we'll update the Thanks for letting us know! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You mention in episode 144 that
package
(inPackage.swift
) is avar
, not alet
, so that you can mutate it later in the file. ThePackage
type is aclass
withvar
properties, so you can mutatepackage
even if you declare itlet
.Target
is also aclass
withvar
properties.I personally found this surprising when I learned it, given the Swift team's strong preference for value types, so I wasn't sure if you were aware of it.
Beta Was this translation helpful? Give feedback.
All reactions