//tvix/eval: +
doesn't support appending a string to a path
#188
Opened by sterni at
Probably worth looking at how this works internally in C++ Nix, but I suspect it's just a string append:
nix-repl> /home + "lukas" /homelukas nix-repl> /home + "/lukas" /home/lukas
Maybe worth waiting until it is clear how paths will work in rnix-parser going forward.
Interesting side note: builtins.add
is not equivalent to a: b: a + b
:
nix-repl> builtins.add "a" "b" error: value is a string while an integer was expected, at (string):1:1 nix-repl> builtins.add /home "/lukas" error: value is a path while an integer was expected, at (string):1:1
- sterni closed this issue at 2022-11-07T15·51+00