Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

KeyName

Constructors

ConstructorFieldsDescription
DynamicKeycontents: Antiquoted StringDynamic/computed key
StaticKeycontents: VarNameStatic identifier key

Description

KeyName represents attribute keys in bindings and attribute paths. A bare identifier like foo is a StaticKey; a quoted string like "foo bar" or antiquoted ${name} is a DynamicKey.

Pages

Nix Library Access

syntax.mkStaticKey "foo"
syntax.mkDynamicKey (syntax.mkAntiquoted (syntax.mkSym "name"))