mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
Types.
This commit is contained in:
parent
251c121832
commit
3da77d5430
@ -25,6 +25,19 @@ true ;; Bool
|
||||
[1 2 3] ;; (Array Int)
|
||||
```
|
||||
|
||||
### Type Literals
|
||||
```
|
||||
t ;; Type variables begin with a lowercase letter
|
||||
Int
|
||||
Float
|
||||
Double
|
||||
Bool
|
||||
String
|
||||
Char
|
||||
(Array t)
|
||||
(Fn [<arg-type1> <arg-type2> ...] <return-type>) ;; Function type
|
||||
```
|
||||
|
||||
### Dynamic-only Data Literals
|
||||
Right now the following data types are only available for manipulation in non-compiled code.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user