Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
legobmw99
80 days ago
|
parent
|
context
|
favorite
| on:
Show HN: Rust library for numerical integration of...
Is there a technical reason to now allow closures as the integrand?
n_plus_1_acc
80 days ago
[–]
Mayve because they aren't guaranteed to be actual functions (in the mathematical sense) and could return random values
legobmw99
80 days ago
|
parent
[–]
The Fn trait could be used, which prevents mutation, but allows a lot of useful closures. I should note, a motivated user could provide a junk function no matter what the type accepted is
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: