I’m using FunctionWrappers.jl to create type stable wrappers for functions I know input and output types. These functions are often closures created in local scopes. When trying to trim a function from FunctionWrappers.jl (or, better, a vector of those), compilation fails. Looking at this julia issue RFC: TypedCallable · Issue #59774 · JuliaLang/julia · GitHub indeed it seems to confirm FunctionWrappers.jl is not compatible with trimming. The issue also proposes a very nice enhancement which would solve my problem, but still it isn’t implemented in Julia until today. So, I’m asking myself if also some other people encountered this issue before and/or know about techniques which can be used to trim a vector of functions with known inputs and outputs, even with no so great performance.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Type-stability with a vector of FunctionWrappers | 7 | 740 | December 3, 2022 | |
| Trim Examples | 1 | 278 | November 12, 2025 | |
| How to deal with Vector{Function} for type inference? | 4 | 432 | May 3, 2023 | |
| Type stability when arguments are functions | 7 | 2408 | July 8, 2017 | |
| Using `...` syntax and `--trim` | 4 | 299 | October 20, 2025 |