||What I Hate About Your Programming Language|
|Subject:||Java; I want a destructor!|
Response to: Java; I want a destructor!
|This is especially true in a object-oriented language. I have a stream. Is it a memory stream or does it represent a file, a socket, or something else that the garbage collector won't release (or that a finalize method will release too late)? If you don't know, then you'll have to remember to try-finally-close that stream. Even when dealing with memory streams. That's convenience?|
Showing messages 1 through 2 of 2.