Why Does Realm use try!
so frequently? It seems like if you're certain your call won't fail then you should not design it to throw
- no?
Here is an example, from the Swift page on realm.io:
// Get the default Realm
let realm = try! Realm()
or
// Persist your data easily
try! realm.write {
realm.add(myDog)
}
To me this implies they will never fail so why have the constructor or write() throw?