Expand description
§Plurality Type Checking
Type system extensions for plurality constructs. Extends Sigil’s evidentiality type system to track alter-source information.
§Core Type Extensions
Sigil’s evidentiality markers (!, ~, ?, ‽) are extended with alter-source:
| Marker | Base Meaning | Alter-Source Extension |
|---|---|---|
@! | Certain | Fronting alter’s authoritative view |
@~ | Reported | Co-conscious alter’s shared perception |
@? | Uncertain | Dormant alter’s cached memory |
@‽ | Paradox | Blended state from multiple alters |
§Type Compatibility Rules
T@!(fronting) is always compatible withTT@~(co-con) can be assigned toT~orT?T@?(dormant) can only be assigned toT?T@‽(blended) requires explicit resolution before use
§Alter-Polymorphism
Functions can be polymorphic over fronting alter:
fn perceive<A: Alter>(entity: &Entity) -> Perception@AStructs§
- Alter
Context - Context for type checking within alter blocks
- Plural
Type - Extended type information for plurality
- Plurality
Type Checker - Plurality type checker
Enums§
- Alter
Source Coercion - Coercion type for alter-source
- Alter
Source Compatibility - Rules for alter-source type compatibility
- Plurality
Type Error - Plurality-specific type errors
- Switch
Validation - Result of validating a switch
Functions§
- check_
compatibility - Check compatibility between two plural types