Skip to content
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

RFC 110: Add "inherit-as-list" language construct #5402

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Oct 18, 2021

  1. RFC 110: Add "inherit-as-list" language construct

    Initial MVP implementation for [RFC 110](NixOS/rfcs#110)
    r-burns committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    1a22abd View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Revert "RFC 110: Add "inherit-as-list" language construct"

    This reverts commit 1a22abd.
    
    In preparation for revised implementation
    r-burns committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    ea2bb4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a297926 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Simplify desugared form

    Before:
    ```
    [ inherit (attrs) a b c; ] := builtins.attrValues { inherit (attrs) a b c; }
    ```
    
    After:
    ```
    [ inherit (attrs) a b c; ] := [ attrs.a attrs.b attrs.c ];
    ```
    
    The previous desugaring has some potentially nice properties such as
    non-significant ordering and no-duplicate enforcement, but was
    ultimately deemed unintuitive and too surprising in practical use.
    r-burns committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    e3dbc74 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

  1. Revise to list-like syntax proposed by Synthetica9

    The new syntax is
    
    ```
    attrs.[ a b c ]
    ```
    
    as sugar for
    
    ```
    [ attrs.a attrs.b attrs.c ]
    ```
    r-burns committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    a606861 View commit details
    Browse the repository at this point in the history