News for hackers. Stuff that matters.
Re:Show HN: A Mathematical Integration rust crate by dataflow on Tuesday November 19, 2024 @08:52PM (#42190112)
What I would do in these cases is to define the general computation function, but special-case it to return the hard-coded value for specific common inputs if it's being evaluated at compile time. Then add a test to verify both behaviors.

There are no comments on this comment yet.