|
|
|
|
|
by grumblingdev
1030 days ago
|
|
JS also kills Python for inline functions thanks to hoisting. It's much easier to follow the control flow with hoisting. I see `run()` being called, and then I want to know what it is. In other languages you are usually seeing a huge bunch of inline functions and then asking: okay, but when and how is this actually called? def foo():
def run():
print("hi")
run()
function foo() {
run()
function run() {
console.log('hi')
}
}
|
|
moreover... basically any half-decent programmer text editor has an outline with the list of functions, so this point may be moot in any way