the variables names should be unique, but in a function or block of code. Let say that we should tell the beginner that it must be unique within a file.
OK, I didn't try in Godot, I'm not sure if it's the case like other programming language
example
var index=0
func method1():
var index=5
....
function method2():
var index=1
...
in : https://gdquest.github.io/learn-gdscript/#course/lesson-8-defining-variables/lesson.tres
the variables names should be unique, but in a function or block of code. Let say that we should tell the beginner that it must be unique within a file.
OK, I didn't try in Godot, I'm not sure if it's the case like other programming language
example