Oh no. oh no no. Do you have examples of languages without the usual local scope binding semantics?
I think the example here is misleading and causing confusion.
I think the example here is misleading and causing confusion.
It's not exactly a language that programmers refer to often, as it's not really general purpose, but I had to do some work with MRI data in it and I hated it mostly due to the scoping.
An "I spent a decent bit of time rewriting the entire lab's codebase in python" type of hate.
Neither are considered pinnacles of language design.
var s = "Geeksforgeeks";
function f_global() {
s = "Me too";
}
// is different from
function f_local() {
var s = "Me too";
}