Y
Hacker News
new
|
ask
|
show
|
jobs
by
cannikin
3774 days ago
Yeah, what kind of strong typing is going to keep you from NOT calling a function?
2 comments
astrange
3774 days ago
The research into this is usually called "effect systems", I think. You can use it to prove that ugly old APIs like OpenGL are being used properly in your code.
As far as the real world goes, all you get is -Wunused.
link
jmfayard
3774 days ago
Adding annotation @CheckResult on android.widget.Toast#makeText(android.content.Context, java.lang.CharSequence, int)
link
As far as the real world goes, all you get is -Wunused.