SplitScript reference / Migration / Function declarations

Function declarations

Migration from C#, JavaScript

Source pattern

  • Rust: func

  • JavaScript: function

Canonical SplitScript

  • func becomes fn.

  • function becomes fn.

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.

  • fn (language)