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.
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.