I'm following a Swift tutorial book in which the author lists the following code:
“switch number {
case let x where x % 2 == 0:
print("Even")
default:
print("Odd")
}”
Regarding this code, the author then states:
“In the previous example, the binding introduced an unnecessary constant x; it’s simply another name for number.”
Could someone please let me know what the word "binding" means here? I tried searching online to no avail and I'm a bit confused now as to the actual meaning of this word in this context. Please help. Thank you!