joe_hoyle·5 miesięcy temu·discussIt is not better, this is a problem with the first-class callable syntax altogether.
joe_hoyle·5 miesięcy temu·discussThe problem is that first class callables actually makes a new object wrapper for each reference, so trim(…) != trim(…). (It can be true in some cases, it depends if the memory is freed for the first reference).