TodePond / DreamBerd

perfect programming language
https://dreamberd.computer
Other
11.23k stars 344 forks source link

Gungan Levenshtein Distance #275

Open Snapstromegon opened 1 year ago

Snapstromegon commented 1 year ago

DreamBerd has the wonderful var var syntax. This has a Levenshtein distance of just 2 to "Jar Jar" Binks, a clumsy character in Star Wars.

Proposal Introduce the new jar jar syntax for variables that can only hold strings that are names from the Star Wars universe. Due to the clumsyness of Binks, a variable created with jar jar can randomly effect variables around it.

Example:

var var x = "Hallo"
jar jar planet = "Naboo"
print(x)

// Result one execution
"Hallo"

// Result another execution
"Obi Wan"
Bytestorm5 commented 1 year ago

If we add a jar keyword we should also extend its capabilities to accept Java jar archives for greater interoperability. Possibly something like this:

jar extLib = "./minecraft.jar"
extLib["blocks"]["cobblestone"].hardness *= 5!
extLib.run()!