3 ms·
Java'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 f
by irahul 15y ago
Java'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?