0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley e834e95d71 Revert "std.SinglyLinkedList: add sort function"
This reverts commit 8b10970836.

This implementation has the following problems:

* It does not provide context to the less than function. This will be an
  API break in order to fix.
* It uses recursion, causing unbounded stack memory usage - likely
  depending on user input, which is extra problematic.
* Sorting linked lists is generally an inefficient operation;
  encouraging it by having a standard library function for it may
  lead to suboptimal software being written in Zig.

Furthermore, there is almost no benefit to providing a sort function as
a method, when a third party implementation can easily be passed a
linked list to then be sorted.
History 2023-11-24 22:33:50 -07:00
..
compiler_rt Deprecate math.doNotOptimizeAway, use mem.doNotOptimizeAway (#18011) 2023-11-23 15:06:32 -05:00
docs autodoc: Some support for field_call (#16853) 2023-10-30 21:04:49 +00:00
include update C language headers to LLVM 17 2023-09-19 09:37:31 -07:00
init zig init: also create a build.zig.zon 2023-11-20 23:30:51 -07:00
libc mingw-w64: add shcore def files 2023-11-02 12:20:09 -07:00
libcxx update libcxx to latest LLVM release/17.x 2023-09-19 09:37:53 -07:00
libcxxabi libcxxabi: update to LLVM 17 2023-09-19 09:37:31 -07:00
libunwind libunwind: update to LLVM 17 2023-09-19 09:37:31 -07:00
std Revert "std.SinglyLinkedList: add sort function" 2023-11-24 22:33:50 -07:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00
build_runner.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
c.zig std: finish cleanup up asm 2023-07-31 03:49:21 -04:00
compiler_rt.zig move libssp into libcompiler_rt 2023-11-10 13:12:10 -07:00
test_runner.zig wasm: re-enable regressed tests 2023-11-01 19:47:15 +01:00
zig.h zig.h: workaround for gcc f128 miscompilations 2023-11-12 17:30:24 -07:00