Comment Re:Corrections and Refinements (Score 1) 211
> What's wrong with being explicit in casting?
Nothing, but why do we need more syntax for it? That's my real complaint with Swift - lots and lots of one-off syntax in places where it didn't seem to be needed. What's wrong with:
var view: NSView = (NSView)anyObject
It's just as explicit, yet this uses familiar syntax that everyone already knows and uses. For that matter, why did they decide to use this syntax:
var view: NSView = (NSView)anyObject
When:
NSView view = (NSView)anyObject
It exactly the same in terms of expressiveness, yet is using a syntax that we're already familiar with? Does adding var really make the code more clear? I certainly don't think so. And the colon? Really? I know the answer already, it's because they picked language X as their model rather than language Y, which is *precisely my point*. Generally if you're going to introduce a new language you have exactly one chance to get it right, and I can't say I'm at all pleased with v1.0.