aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl-overlays.nix
diff options
context:
space:
mode:
authorpiegames <git@piegames.de>2024-07-22 21:26:17 +0200
committerpiegames <git@piegames.de>2024-08-07 13:07:50 +0000
commitec7552ff7411592305d28ec4bfcb4ea55866ab36 (patch)
treed783c43edf0789cf672bb17750ed6342dd5238f8 /src/libcmd/repl-overlays.nix
parent27a63db710f1b923fcc74873d70c7e0bfc4ea092 (diff)
libexpr/parser: Test experimental features
Currently, the parser relies on the global experimental feature flags. In order to properly test conditional language features, we instead need to pass it around in the parser::State. This means that the parser cannot cache the result of isEnabled anymore, which wouldn't necessarily hurt performance if the function didn't perform a linear search on the list of enabled features on every single call. While we could simply evaluate once at the start of parsing and cache the result in the parser state, the more sustainable solution would be to fix `isEnabled` such that all callers may profit from the performance improvement. Change-Id: Ic9b9c5d882b6270e1114988b63e6064d36c25cf2
Diffstat (limited to 'src/libcmd/repl-overlays.nix')
0 files changed, 0 insertions, 0 deletions