infinisil changed the topic of #nix-lang to: Channel for discussing Nix as a language - https://nixos.org/nix/manual/#chap-writing-nix-expressions - Logs: https://logs.nix.samueldr.com/nix-lang/
ddellacosta has joined #nix-lang
ddellacosta has quit [Quit: WeeChat 2.2]
pie_ has quit [Ping timeout: 252 seconds]
Synthetica has quit [Quit: Connection closed for inactivity]
{^_^} has quit [Ping timeout: 250 seconds]
pie_ has joined #nix-lang
pie__ has joined #nix-lang
pie_ has quit [Ping timeout: 252 seconds]
<pie__> would a language extension where you can have a default argument that gets extended by new arguments, as opposed to not set, make sense? or would that make things too complicated? right now im just using { arg ? {} } and then later where I use arg I do (defaults.arg // arg)
<ekleog> The definition of “extended” is going to be quite heavily problem-specific
<ekleog> `//` is one possible version, but `submodule { foo = lines; bar = listOf any; }` in nixos module parlance is another
<ekleog> so for the minor boilerplate it requires, I'm not sure it's worth including an entire extension system in the nix language
__monty__ has joined #nix-lang
<pie__> ok that sounds reasonable i thik
{^_^} has joined #nix-lang
{^_^} has quit [Ping timeout: 248 seconds]
{^_^} has joined #nix-lang
{^_^} has quit [Ping timeout: 264 seconds]
{^_^} has joined #nix-lang
{^_^} has quit [Ping timeout: 264 seconds]
{^_^} has joined #nix-lang
{^_^} has quit [Ping timeout: 264 seconds]
pie__ has quit [Ping timeout: 258 seconds]
{^_^} has joined #nix-lang
{^_^} has quit [Ping timeout: 252 seconds]
MichaelRaskin has joined #nix-lang
__monty__ has quit [Quit: leaving]