-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refac(examples): Denest the source #724
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks easier to read to me.
not sure, this touches the legacy partitions which we should migrate from anyway. Also by splitting it up people could be inclined to split the code over multiple files and this will trigger weird errors. |
I think this was just meant as an example to show what this would look like for all examples.
What parts don't merge correctly? There are ways to allow only one instance to be defined. |
|
what ways? can those help in this #678, where same key was defined more than once?
how about some note like any of following or smth similar; maybe in the example files themselves?
'cz in the current form, the examples are unreadable and don't really fulfill their purpose to the full potent. |
Hi!
I was just trying to understand the
disko
's examples, and i did this refactoring.i found this interesting and thought to share with yous and ask if you'd be interested to get a merge request refactoring others in a similar fashion too 😃?
i tried to run the
nix-instantiate --eval --strict
(nixel reference) and yes, these evaluated to absolutely same thing 😃a more elaborate setup to compare automated-ly, rather than eyeballing 👀 :