Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A Vote!

Name: Anonymous 2013-11-29 5:55

I saw we ban the following programming languages:


Javascript
Ruby


from this board for the purpose of being too shitty.

Name: Anonymous 2013-11-30 1:47

>>6

Consider int atoi (const char * str);
It returns 0 on error. Of course, it also returns 0 when that's the correct number to return. And so we have no real way of knowing if the function failed. With dynamic typing, we can have the function return "error", nil or some equivalent value. Of course, there are work around to this problem, like checking the type of the string before hand, but you can't deny that there are advantages like this to dynamic typing.

Also I'm against dynamic typing.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List