Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/'s own esoteric language

Name: Anonymous 2008-08-04 18:08

Fun idea. Let's make our own programming language.
Conditions:
Must be somewhat useful like ABC.
Not limited to characters only. Can include words.
1 function per post.

Name: Anonymous 2008-09-15 20:20

>>89
Wait. let's reserve ', ` and company for quote, quasiquote and company macros. Strings could be represented with " and nestable Tcl or Perl-like quotes with braces. Dictionaries and sets specified as (dict (k1 v1) ...) and (objectset e ...). . and [] should be advanced macro shorthands for get/set!, which in turn are macros for the actual double-underscore methods that get called behind the scenes. Variables are defined with (def var value) and rebound with (= var value) (a slight change from Python's semantics for better closures); use (== item ...) to compare. All filthy statements are now expressions and return the last evaluated value (e.g. the value of the last expression in the last iteration of a while loop). Lambdas are, thus, as powerful as defs. Tail-call elimination is guaranteed to happen.

This would probably be Guido's worst nightmare. And this is exactly what he'd need to do to the language; perhaps minus the Lisp syntax.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List