Y
Hacker News
new
|
ask
|
show
|
jobs
by
JulianMorrison
5516 days ago
You're lucky Java is checked at compile time. Ruby would eat that "no such method dipose" and silently leak x.
1 comments
CodeMage
5516 days ago
You're lucky Java is checked at compile time.
Not lucky enough, because x.dispose() could throw an unchecked exception.
link
Not lucky enough, because x.dispose() could throw an unchecked exception.