|
|
|
|
|
by codygman
4110 days ago
|
|
> Because everything from the web is a string. Do you consider JSON a string? Would you manipulate it as a string or use a JSON parser? > How does putting (int) before the arguments to function help anything? It throws an error in case you receive bad input, and as we all know you will receive bad input. |
|
Of course I manipulate the data - that's exactly what weak mode does, convert the strings into integers. I just don't see how doing the conversion myself manually helps anything.
> It throws an error in case you receive bad input, and as we all know you will receive bad input.
It does no such thing. (int) will simply turn bad input into a zero.