Primitive Types
Draft 0.1 recommends these canonical built-in names:
NumberStringBooleanNullUndefinedNeverUnknown
Example values
count = 10name = 'Ada'active = trueempty = Nullmissing = UndefinedImportant rules
- there is no implicit coercion between primitive types
Nullis not assignable to everything by defaultUndefinedis not assignable to everything by default
Comparison to JavaScript
JavaScript performs many implicit coercions. FScript does not. That makes programs more predictable and keeps the type system easier to trust.