Exclusive scopes that ban access to variables in scope

I guess it won't take long for someone to brush away the whole idea, so I'll better hurry :smiley:

Angle brackets imho are not a good choice — I'd stick with what we have for capture lists, and try to extend that syntax, e.g.

let newView1 = { [^self.view] … // Don't use self.view
let newView1 = { [@strict] … // Don't allow any implicit capturing

Probably, there are better options for sigils or names, but I guess it's unavoidable that it's at least as cryptic as the current capture lists...

2 Likes