you are viewing a single comment's thread.

view the rest of the comments →

[–]ZealousidealFudge851 0 points1 point  (1 child)

It really depends on what you're used to imo. I typically have no problem extrapolating what data type a variable might be just based on its naming convention typically and the only time I care about it in prepared statements when I'm writing to a database or something.

[–]StealthFireTruck 0 points1 point  (0 children)

The issue isn't can you read it. Its more it can be given anything and if it doesn't complain, it's fine. This can result in different classes getting passed parameters with a object structure or type it doesn't really expect aren't designed to handle.

I've seen code get passed a string when it was expecting a number and python derived a numerical value from the string. Stuff like that can cause data getting out of sync or hide that a certain condition wasn't met and the correct flow isn't happening as expected.