Should we add namespaces? #987
max-ishere
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I don't think something like this would be bad. If the namespace had some effect on variable scoping then it would be really good for storing local values, seeing as we can't really scope a variable to only be defined within a window. Also, how did you find out about widget renaming? I can't remember the documentation mentioning that at all. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This sounds a little out there for Yuck and Eww, but I think having a namespace would be nice. Essentially you would have a couple of options. Either a
(import "bar.yuck" as bar)
or (this would be way better)(namespace bar)
. Then when you want to use a widget/window from a namespace you simply usebar::Window
.You can already name windows and widgets using
::
, but this will just make the process a little easier.The issue with using
(import
is that it doesn't actually achieve anything since no renaming happens if at least one file in the include tree doesnt use the new(import
syntaxBeta Was this translation helpful? Give feedback.
All reactions