lix/src/libexpr
sternenseemann d0f2da214b primops: make nature of foldl' strictness clearer
* Clarify the documentation of foldl': That the arguments are forced
  before application (?) of `op` is necessarily true. What is important
  to stress is that we force every application of `op`, even when the
  value turns out to be unused.

* Move the example before the comment about strictness to make it less
  confusing: It is a general example and doesn't really showcase anything
  about foldl' strictness.

* Add test cases which nail down aspects of foldl' strictness:
  * The initial accumulator value is not forced unconditionally.
  * Applications of op are forced.
  * The list elements are not forced unconditionally.
2022-10-16 14:29:12 +02:00
..
flake Merge pull request #7089 from NixOS/mention-accept-flake-config-in-warning 2022-09-26 11:13:02 +02:00
primops fetchGit: document shallow argument 2022-06-26 12:00:00 +00:00
tests src/libexpr/tests/primops.cc: Quote Nix expressions 2022-06-29 11:37:25 +02:00
attr-path.cc rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
attr-path.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
attr-set.cc Don't pass Symbol by reference 2022-04-26 13:25:17 +02:00
attr-set.hh Don't pass Symbol by reference 2022-04-26 13:25:17 +02:00
eval-cache.cc Fix evaluation cache 2022-08-24 21:19:43 +02:00
eval-cache.hh Make nix::eval_cache::int_t more idiomatic 2022-05-16 16:36:21 +02:00
eval-inline.hh incorporate PosIdx changes, symbol changes. 2022-04-29 10:02:17 -06:00
eval.cc Fix NIX_COUNT_CALLS=1 2022-08-03 17:46:51 +02:00
eval.hh Merge branch 'master' into ignore-try 2022-07-11 11:29:22 -06:00
fetchurl.nix fetchurl.nix: change other use of __impure 2022-09-16 01:54:24 -07:00
function-trace.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
function-trace.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
get-drvs.cc Respect the outputSpecified attribute 2022-05-30 11:34:47 +02:00
get-drvs.hh Remove pre-C++11 hackiness 2022-05-26 12:40:01 +02:00
imported-drv-to-derivation.nix Move some corepkgs into the nix binary 2020-03-11 16:57:48 +01:00
json-to-value.cc return string_views from forceString* 2022-01-27 17:15:43 +01:00
json-to-value.hh return string_views from forceString* 2022-01-27 17:15:43 +01:00
lexer.l Handle EOFs in string literals correctly 2022-05-25 17:58:13 +02:00
local.mk Merge pull request #5175 from Pamplemousse/make 2021-08-30 12:44:29 +02:00
nix-expr.pc.in pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
nixexpr.cc remove redundant 'debugMode' flag 2022-05-22 21:45:24 -06:00
nixexpr.hh Shut up clang warnings 2022-06-02 21:19:54 +02:00
parser.y Forbid the tilde expansion in pure eval mode 2022-06-21 14:08:18 +02:00
primops.cc primops: make nature of foldl' strictness clearer 2022-10-16 14:29:12 +02:00
primops.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
symbol-table.hh EvalCache AttrKey: Use Symbol instead of std::string 2022-04-26 14:16:20 +02:00
value-to-json.cc JSON: print paths as strings without copying them to the store 2022-08-22 15:01:35 +02:00
value-to-json.hh JSON: print paths as strings without copying them to the store 2022-08-22 15:01:35 +02:00
value-to-xml.cc store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
value-to-xml.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
value.hh JSON: print paths as strings without copying them to the store 2022-08-22 15:01:35 +02:00