Raised during the v1.0.0 launch on r/embedded (EpochVanquisher): numx_func1d_t is a plain numx_real_t ()(numx_real_t) with no void context parameter, so closures or extra parameters aren't possible without a global, which would violate the project's own no-global-mutable-state rule. Confirmed as a real limitation, not a false alarm, affects roots.c, integrate.c, differentiate.c, and ode.c.
Three options discussed, need a decision:
- Add new _ctx variant functions alongside the existing ones (non-breaking, grows the API surface)
- A clean breaking change as part of v2.0.0 with a migration guide (this milestone)
- Leave it as a documented, accepted limitation
Filed under v2.0.0 as the breaking-change option since that's the version where API breaks are expected; the decision itself (including possibly choosing option 1 or 3 instead) should happen before implementation.
Raised during the v1.0.0 launch on r/embedded (EpochVanquisher): numx_func1d_t is a plain numx_real_t ()(numx_real_t) with no void context parameter, so closures or extra parameters aren't possible without a global, which would violate the project's own no-global-mutable-state rule. Confirmed as a real limitation, not a false alarm, affects roots.c, integrate.c, differentiate.c, and ode.c.
Three options discussed, need a decision:
Filed under v2.0.0 as the breaking-change option since that's the version where API breaks are expected; the decision itself (including possibly choosing option 1 or 3 instead) should happen before implementation.