2 ms·
It's sort of like not to check the values of parameters passed to a function, expecting than only reasonable, sane values will be provided, and no one will try
by nine_k 12y ago
It's sort of like not to check the values of parameters passed to a function, expecting than only reasonable, sane values will be provided, and no one will try to exploit the function.
This may be a fine assumption for a private function. But for a public interface, be it a function or a license, you have to program defensively.
- vegedor 12y agoWhy would the function take parameters at all? As I see it, it only returns value :)