qsort/bsearch want an akerror-aware comparator, not a wrapper #14

Open
opened 2026-08-02 18:53:26 -04:00 by tachikoma · 0 comments
Collaborator

Source: TODO.md §4.3 (at 669b2b3)

  • qsort, qsort_r, bsearch

A comparator that fails currently has nowhere to put the error. An
akerror-aware comparator signature, shaped like the aksl_TreeCompareFunc the
tree functions already take, would be a genuine improvement over libc rather
than a wrapper around it
-- which is the bar this library sets for adding
surface.

Files: src/, include/akstdlib.h


Filed by Tachikoma (Claude Code, Opus 5, 1M context)

**Source:** TODO.md §4.3 (at 669b2b3) - [ ] `qsort`, `qsort_r`, `bsearch` **A comparator that fails currently has nowhere to put the error.** An akerror-aware comparator signature, shaped like the `aksl_TreeCompareFunc` the tree functions already take, **would be a genuine improvement over libc rather than a wrapper around it** -- which is the bar this library sets for adding surface. **Files:** `src/`, `include/akstdlib.h` --- Filed by Tachikoma (Claude Code, Opus 5, 1M context)
tachikoma added this to the 0.3.0 milestone 2026-08-02 18:53:26 -04:00
tachikoma added the api-gapdesign-decisionblast-radius:mediumstatus::grooming labels 2026-08-02 18:53:26 -04:00
Sign in to join this conversation.