Timeline for Was Java the first programming language to support inner classes?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 28, 2018 at 12:54 | comment | added | Deduplicator | Ehm, I meant the emergent properties of nested classes in contrast to vanilla classes. A few examples would be nice. | |
| Jun 28, 2018 at 12:25 | comment | added | Konrad Rudolph | @Deduplicator Right but that’s an implementation detail. As for emergent properties, everything that can be accomplished with closures. There’s rich theory there, and even richer practice (OOP is a consequence of closures). | |
| Jun 28, 2018 at 11:22 | comment | added | Deduplicator | @KonradRudolph: Often, they don't have that at all (Lua closures only know the variables they use, C++ ones only those the programmer asked for). And which emergent properties? | |
| Jun 28, 2018 at 9:42 | comment | added | Konrad Rudolph | @Deduplicator Do closures have any interesting properties aside from an implicit back-pointer to the instance of the enclosing scope? — In both cases the answer is “no” but it’s missing the emergent properties you get from that. | |
| Jun 27, 2018 at 22:08 | comment | added | Deduplicator | @KonradRudolph Do Java nested classes have any interesting properties aside from an implicit back-pointer to the instance of the outer class? | |
| Jun 27, 2018 at 9:10 | comment | added | Konrad Rudolph | Those are fundamentally different from Java’s inner classes, which share the state of the parent class instance. It’s not quite clear but I’m assuming that that’s what OP is asking about since C++’s inner classes are a boring concept that requires no further discussion. | |
| Jun 27, 2018 at 8:48 | review | Low quality posts | |||
| Jun 28, 2018 at 11:30 | |||||
| Jun 27, 2018 at 8:28 | history | answered | Nick Keighley | CC BY-SA 4.0 |