News for hackers. Stuff that matters.
Re:KCL, a constraint-based functional language for configura... by yjftsjthsd-h on Monday August 05, 2024 @07:47PM (#41166633)
ansible has what I think is a sort of similar system, where a role can define default values for its variables but they can be overridden in a fairly deep hierarchy of successive priorities; it helps that the lowest tier is literally labeled "defaults" so you automatically expect it to be overwritten, though in the upper layers I still have to look up to see which thing takes precedence.
Re:KCL, a constraint-based functional language for configura... by soraminazuki on Tuesday August 06, 2024 @06:04PM (#41175894)
The merging behavior of Nixpkgs modules are much simpler. It doesn't have orders or complex priority rules that depend on where an option is defined. Options have types, which also specifies the merging behavior. Merging of collection types just work.