Joe Soltzberg

73%
Flag icon
Generally speaking, a failed method invocation should leave the object in the state that it was in prior to the invocation
Joe Soltzberg
Not sure how useful this would be, but I feel like this could be fairly-easily supported on the language level through some special keyword
Robert
· Flag
Robert
What do you mean? Like an `undo` (or `transaction`, which is basically what this is like)? I think it's hard for the language/JVM to provide that efficiently. Consider that a method could make changes…
Effective Java
Rate this book
Clear rating
Open Preview