This is really interesting:
let name: String
// …
name = "Chasen"
// Allowed once
In JavaScript, the “equivalent” (using const
) requires an initial value and doesn’t let you reassign it later. I like that Swift allows it be undefined and assigned just once.
Day 4 done! #100DaysOfSwiftUI