mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09:31 +00:00
Prefix type checkers with "is", stdlib cleanup
This commit is contained in:
parent
98917c2ca4
commit
7f71569e07
25 changed files with 163 additions and 160 deletions
|
|
@ -1,7 +1,7 @@
|
|||
:$ fn(x::number)
|
||||
:$ fn(x::is number)
|
||||
|x
|
||||
|
||||
:$ fn(a::string="o")
|
||||
:$ fn(a::is string="o")
|
||||
|a
|
||||
|
||||
fn("s")
|
||||
|
|
@ -10,10 +10,10 @@ fn(5)
|
|||
|
||||
fn()
|
||||
|
||||
:$ g(n="s", a::number=5)
|
||||
:$ g(n="s", a::is number=5)
|
||||
return("gn")
|
||||
|
||||
:$ g(n="s", a::string="lol")
|
||||
:$ g(n="s", a::is string="lol")
|
||||
return("gs")
|
||||
|
||||
|{g(n="k", a="l")}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue