3 ms·
I actually agree with you about inheritance and OOP. It's funny because when I finally understood how to override packages with this late-binding technique, I
by rssoconnor 4y ago
I actually agree with you about inheritance and OOP. It's funny because when I finally understood how to override packages with this late-binding technique, I said to myself "Finally I've found a use for inheritance!".
I certainly think people should exercise caution as this could probably be abused quite badly. Maybe people will come up with better designs in the future. However I will say, that the method it has replaced was much worse. The old way was adhoc and almost always failed to achieve ones desires in all but the simplest cases.
Don't just take my word for it. Peter Simons also agrees: <https://github.com/NixOS/nixpkgs/commit/3c8b33eee442fd573d47555122cfe358134aeb64 https://github.com/NixOS/nixpkgs/commit/3c8b33eee442fd573d47...>