On Wednesday, 15 June 2016 at 10:27:14 UTC, Ola Fosheim Grøstad wrote:

Sorry, I missed this question.

No, some languages distinguish by requiring you to use special syntax like "let x = 4" for introducing the name "x" and so on.

Some languages also allow you to freeze a variable so it becomes constant.

There is a pretty large space of different semantics to choose from.

But Python for example doesn't care. What you describe is basically trying to mimic static typing.

Reply via email to