3 ms·
Python has Java like closures? No comprende.
by kingkilr 15y ago
Python has Java like closures? No comprende.
- irahul 15y agoJava's closures are a pain as they need inner classes to emulate closures - Python's are a lot easier, hands down. Java needs the local variables to be final for it to close over them. Python doesn't but you can't directly mutate it. Won't you agree in that sense the statement holds some truth?