Kurtis Rader
Kurtis Rader
Closing since the presentation of command duration in the prompt is highly personal and it is unlikely there will ever be enough consensus to justify including an Elvish function with...
Would the hypothetical mechanism also reload *rc.elv*? Honestly, I don't see the point of the proposed feature since it is trivial to `exec elvish`. Except, of course, on Windows where...
> $(...) has the advantage of mirroring the POSIX syntax, so it's not something completely new. The counter argument is that the unquoted behavior in a POSIX shell depends on...
> personally I feel that it's a bit strange that something as simple as var x = (cmd) is somewhat fragile Hmmm, I would argue that the absence of `|...
> Would it be feasible to implement automatic discovery of completion files? Yes, but it probably requires some discussion over a period of several months to determine if the pro's...
> why is that an option instead of separate command? For performance. It's more efficient to do the dedupe when ordering the values than it is to pipe them into...
@SolitudeSF, I just created P.R. #1569 that implements a `dedupe` command. So now we can efficiently sort lists with duplicate elimination and dedupe arbitrary inputs.
> Optimizing order | dedupe is indeed desirable, eventually. But it can and should be done transparently - the compiler can recognizing the pattern order | dedupe in a pipeline...
> I don't know any languages that offer any promises in the order of keys in a hash/dictionary. That is true for hash based maps which is, as you note...
There was an IM/Gitter discussion about this wherein @xiaq pointed out that preserving insertion order is often more useful than sorting the map's keys. Which is why Python's `collections.OrderedDict` exists...