Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created December 15, 2013 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/7974141 to your computer and use it in GitHub Desktop.
Save zeffii/7974141 to your computer and use it in GitHub Desktop.

This has been on my mind for a while now, and the topic has been touched on tangentially a few times. ChucK has managed to wiggle its way into my circle of favourite languages. Having written a lot of .ck over the past 8 weeks, I've often wondered wouldn't it be nice not to have to write

  • the curly brackets
  • parenthesis around if statements.
  • slightly tedious for loop convention.
  • ...semi colons.

I'm very tempted to write a language and parser that compiles a whitespace scoped language (not unlike python and coffeescript) directly into .ck. I'll probably keep it

  • strongly typed and
  • keep the chuck operator for signal flow,
  • but perhaps go back to a single = symbol for assignment
  • maybe reversing the direction of assignment from (a => b) to ( b = a )

I think the nicest example of what I mean is something along the lines of coffeescript, where on the left you have the shorter coffeescript, and it translates into the more verbose, but efficient form of, javascript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment