Embed namespace in the class definition #8021
Unanswered
foximoxi
asked this question in
Language Ideas
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I think it made sense to consider prior to file-scoped namespaces, but at present you'd literally just be saving a single line. Honestly doesn't seem worthwhile to me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to propose additional class definition with embedded namespace
Instead of:
There is as lot of situations where it is required to produce simple classes (e.g. models) and this would save one or two lines which improves readability of the code
Beta Was this translation helpful? Give feedback.
All reactions