Python - why can't I require variable declarations?

Status
You're currently viewing only ShuggyCoUk's posts. Click here to go back to viewing the entire thread.

ShuggyCoUk

Ars Legatus Legionis
10,388
Subscriptor++
Why questions on intent are hard without authoritative statements from the designer(s)

That said a read through the comments and answers on this question will cover much of the debate which pretty much boils down to the opinions “It should get trapped by a unit test” vs “the compiler checking it is less hassle”
https://stackoverflow.com/questions/221 ... -variables

I cannot speak to the merits of those arguments from experience because use of python for anything large drives me up the wall anyway because I am extremely reliant on the compiler forcing the flow of required changes through a program. This may be my mindset being ossified after decades of use of largely statically typed languages though.
 
Status
You're currently viewing only ShuggyCoUk's posts. Click here to go back to viewing the entire thread.