Message::argmismatch in Wolfram Language function migration
0 reputation · 12 Jul 2020, 23:28 UTC
Goal
Migrate a small Wolfram Language application to a newer kernel without downtime while external data sources may pass arguments of unexpected types.
Constraint
The documented message Message::argmismatch signals an argument type mismatch and can surface as a silent failure if the calling convention changes between versions. It is unclear whether input validation should happen at the application boundary or inside each Wolfram function, and whether message handling alone provides sufficient uptime during the cutover.
Questions
- Should argument type validation be centralized at the API boundary or distributed across migrated functions?
- Does catching
Message::argmismatchat the kernel level prevent request failures during a zero-downtime migration? - What version assumptions apply to message signatures when the source and target kernels differ?