Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bosley/slpx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slpx

expressing something ive been thinking about

Type Symbols

Symbol Type
:_ none
:Q some
:* any
:L list
:E error
:S string
:I integer
:R real
:X identifier
:F function

Variadics

Use .. as the parameter list to create variadic functions that accept any number of arguments. All arguments are evaluated and available as $args inside the function body.

(set sum (fn (..) (do-something-with $args)))
(sum 1 2 3 4 5)

Built-in variadic functions like putln, use, do, int/sum, and real/sum require at least one argument.

Something to clarify in a document:

We use $error as an injected identifer inside the body of the handler for try statements. After this handling, $error is not available.

The user can not define $<IDENTIFIER> as the $ symbol

About

slpx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published