Comments (8)
SwiftInFlux is not a list of bugs in Swift.
from swiftinflux.
That shows a change on the compiler/IDE not a bug.
from swiftinflux.
I don't think I understand.
from swiftinflux.
I had that line compiling in XCode 6.1 but it marks as an error in XCode 6.3 beta
Expected experssion for size of array type
and if you add some parentesis it compile:
let newUserInfo = (error.userInfo as? [NSObject:NSObject]) ?? [:]
Still not the objective of SwiftInFlux?
from swiftinflux.
Ultimately, no.
This seems like a regression in a compiler, and I believe you should definitely file a radar about that, but that doesn't look like a deliberate change in the language semantics to me.
from swiftinflux.
Hm. It looks like the as?
operator has changed its precedence (it's now lower than ??
) — I checked and ??
has the same precedence as before.
I dunno, it is a change, but I would never make the assumption that error.userInfo as? [NSObject: NSObject] ?? [:]
did what you expected to. I'd put it in parens anyway.
from swiftinflux.
Oh, snap, right, the precedence did change. Totally forgot about it! I'm not so sure myself now.
from swiftinflux.
Turns out, it is a bug :)
https://devforums.apple.com/message/1102772#1102772
Should be fixed in the next beta.
from swiftinflux.
Related Issues (20)
- Backfill beta 7/GM changes
- Class properties no longer allow classes with defaults HOT 2
- Changes to XCode 6.1.1 missing HOT 5
- Verify when "Enumeration case value labels" started working
- Overriding declarations from extensions works with @objc HOT 7
- Generic subscripts on non-generic classes/structs HOT 1
- Xcode 6.3 Beta 1 has a first-class `Set` type HOT 2
- Write up about "non-fixed multi-payload enum"
- Write up about "self." requirement within nested functions
- XCode 6 Beta 4 change on convenience initialisers? HOT 3
- Returning nil in a failqble initializer
- Typealiases and generics
- Swift 2 HOT 2
- Playgrounds without saving the file
- Extending compound types
- Confusing static dispatch of protocol methods
- Partial application of struct/enum methods
- Extensions for constrained generic types
- Reflection: Mirror is now documented HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftinflux.