Types
Ferret's most basic data types are
-
Object - All Ferret values are objects -
(a: "b", c: "d")
-
String (abbr. Str) -
"Ferret is fun"
-
Number (abbr. Num) - Real numbers -
3.14
-
Complex - Complex numbers -
3+5i
-
Regex (abbr. Rgx) - Regular expressions -
/(.*)/
-
List - Ordered lists -
[1, 2, "three"]
-
Hash - Key-value maps -
[a: "b", c: "d"]
-
Boolean (abbr. Bool) -
true
andfalse
-
Symbol (abbr. Sym) -
:symbol
-
Function (abbr. Func) -
func {}
Although not really a type, it seems like a good time to mention that
undefined
is the object representing the absence of a value.