implements PLN-0078
This commit is contained in:
+12
@@ -343,6 +343,18 @@ This list fixes the currently required declarative role of interface modules, bu
|
||||
|
||||
An interface module is not runtime code.
|
||||
|
||||
### 9.2.1 Callable parameter identity
|
||||
|
||||
Stdlib and SDK interface modules define public callable surfaces. Their method and function signatures MUST preserve stable canonical parameter names in the compiler semantic callable model.
|
||||
|
||||
Rules:
|
||||
|
||||
- Stdlib and SDK-hosted callable definitions MUST carry parameter names, zero-based order, type when known, and source/origin metadata.
|
||||
- Stdlib and host-backed parameter names are part of the public API surface.
|
||||
- Renaming a public stdlib or host-backed parameter is API compatibility-sensitive and MUST be reviewed with the same discipline as other public callable-shape changes.
|
||||
- Interface-module loaders MUST NOT replace missing or unavailable public parameter names with generated ordinal placeholders such as `arg0` or `arg1`.
|
||||
- Missing canonical parameter identity MUST be represented as incomplete semantic metadata, not as a fabricated public name.
|
||||
|
||||
### 9.3 Interface-module restrictions
|
||||
|
||||
At minimum, an interface module MUST remain declarative.
|
||||
|
||||
Reference in New Issue
Block a user