ink-lang is a programming language created in 2019 by Linus Lee.
#862on PLDB | 5Years Old |
git clone https://github.com/thesephist/ink
Ink is a minimal programming language inspired by modern JavaScript and Go, with functional style.
std := load('std')
log := std.log
listen('0.0.0.0:8080', evt => (
evt.type :: {
'error' -> log('Error: ' + evt.message)
'req' -> (evt.end)({
status: 200
headers: {'Content-Type': 'text/plain'}
body: 'Hello, World!'
})
}
))