Skip to content

[lasagna + concepts] Inner classes hint#1826

Open
VaiaPatta1985 wants to merge 4 commits intoexercism:mainfrom
VaiaPatta1985:inner_classes_hint
Open

[lasagna + concepts] Inner classes hint#1826
VaiaPatta1985 wants to merge 4 commits intoexercism:mainfrom
VaiaPatta1985:inner_classes_hint

Conversation

@VaiaPatta1985
Copy link
Copy Markdown
Contributor

Updated lasagna intro and concepts basics to include mention of inner classes. Solves #1825
.

Updated intro of first concept exercise to include a mention of nested classes.
Update basic concepts to mention inner classes.
@github-actions
Copy link
Copy Markdown
Contributor

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

Added forgotten comment in code illustrating nested classes.
Added forgotten comment in code illustrating nested classes (in basics).
@VaiaPatta1985
Copy link
Copy Markdown
Contributor Author

Heads-up: The PR should contain FOUR commits, not two. The other two were made after making the PR. If there's something I can do to fix this, please tell me.

@kotp kotp reopened this Mar 29, 2026
kotp
kotp previously approved these changes Mar 29, 2026
@kotp kotp dismissed their stale review March 29, 2026 18:30

Lasagna would not readily facilitate namespaces like this, as a concept.

Comment on lines +50 to +63
Classes can contain other classes (_inner classes_):

```
# Define outer class
class Calculator
# Define inner class
class SpecialHandler
# ...
end
# ...
end
```
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not understanding why or how the Lasgna problem introduces name spacing. The other change is good, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants