SplitScript reference / Migration / Function declarations
Function declarations
Migration from C#, JavaScript
Source pattern
-
Rust:
func -
JavaScript:
function
Canonical SplitScript
-
funcbecomesfn. -
functionbecomesfn.
Use the canonical language and API symbols linked below.
Semantic difference
Functions and methods use the fn declaration keyword.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
- fn (language)