https://github.com/vengarioth/kwonlang-spec
specification for the toy language kwonlang
https://github.com/vengarioth/kwonlang-spec
Last synced: 5 months ago
JSON representation
specification for the toy language kwonlang
- Host: GitHub
- URL: https://github.com/vengarioth/kwonlang-spec
- Owner: Vengarioth
- Created: 2016-09-12T10:47:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-12T11:00:14.000Z (almost 10 years ago)
- Last Synced: 2025-03-03T11:23:29.937Z (over 1 year ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Kwonlang Specification
## Elevator Pitch
__todo__
## Contribute
Fork, change, pull request.
## Functions
Functions are first class citizens. They can be anonymous, referenced via variables
## Async scopes
State: early draft
```
(
(a) => { async(a); } => a
(b) => { async(b); } => b
(c) => { async(c); } => c
) => {
async(a + b + c);
}
```
## Lambdas with arrow notation
```
(a, b) => { a + b; }
```
## Polymorphic Functions
State: early draft
```
add(a, b) {
(string a, string b) => {
return a + b;
}
(int a, int b) for a == 0 => {
return b;
}
(int a, int b) => {
return a + b;
}
(object a, object b) => {
return a.toString() + b.toString();
}
}
```
## Objects
__todo__