You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- 5Citing the very link you posted: “BETA language introduced this notion of nested classes.”amon– amon2018-06-25 15:36:43 +00:00Commented Jun 25, 2018 at 15:36
- It’s worth noting that the list in that article is woefully incomplete. Virtually all languages that support ad-hoc class declarations support inner classes, including LISP dialects and many functional programming languages.Konrad Rudolph– Konrad Rudolph2018-06-27 09:12:54 +00:00Commented Jun 27, 2018 at 9:12
- 2@KonradRudolph: OTOH, the list includes Ruby, in which you can have lexically nested class definitions, but they don't produce nested classes. They only produce nested names. The list seems to confuse the syntactic possibility of writing a class inside another class with the semantic feature of nested classes, which are properties of the class instance just like fields are. In fact, a nested class is in essence very much like a first-class class object assigned to a field of the object.Jörg W Mittag– Jörg W Mittag2018-06-27 12:29:54 +00:00Commented Jun 27, 2018 at 12:29
- 1@JörgWMittag Yes, same for most of the list, including C++, VB, C#. That article is rubbish.Konrad Rudolph– Konrad Rudolph2018-06-27 12:40:08 +00:00Commented Jun 27, 2018 at 12:40
- Another, equally interesting pioneering innovation by Beta are virtual classes. In fact, they don't make sense without "true" nested classes, since a virtual class is a class that is a member of an outer class (IOW a nested class) that can be overridden in a subclass, just like a virtual method is a member of a class that can be overridden in a subclass. They are insanely powerful and exist AFAIK only in Beta, gBeta, Newspeak and some research dialects of Java. Scala tried them out, but they were so powerful that they broke the type system, so they were removed again.Jörg W Mittag– Jörg W Mittag2018-06-27 20:57:27 +00:00Commented Jun 27, 2018 at 20:57
| Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you