Measures Concepts
GitHub icon

Scrapscript

Scrapscript - Programming language

< >

Scrapscript is a programming language created in 2023 by Taylor Troesh.

#1831on 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.


Example from the web:
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

Language features

Feature Supported Token Example
Expressions

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout