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

You're lucky Java is checked at compile time.

Not lucky enough, because x.dispose() could throw an unchecked exception.