Scrapscript is a programming language created in 2023 by Taylor Troesh.
#2516on PLDB | 1Years Old |
All programs are data, expressions are content-addressable "scraps".Scrapscript rejects traditional package-management. Instead, “scrapyards” combine features from Smalltalk, Hackage, IPFS, GitHub, and StackOverflow.
greet <| person:ron 3
. greet :: person -> text =
| :cowboy -> "howdy"
| :ron n -> "hi " ++ a ++ "ron" , a = text/repeat n "a"
| :parent :m -> "hey mom"
| :parent :f -> "greetings father"
| :friend n -> "yo" |> list/repeat n |> string/join " "
| :stranger "felicia" -> "bye"
| :stranger name -> "hello " ++ name
. person =
: cowboy
: ron int
: parent s , s = (: m : f)
: friend int
: stranger text
Feature | Supported | Example | Token |
---|---|---|---|
Expressions | ✓ |