Hacker News new | ask | show | jobs
by luciferous 5097 days ago
Since you're familiar with arrowlets, would you mind having a look at samsara?

[samsara]: http://lcfrs.org/samsara/docs/dragndrop.html

1 comments

That seems cool--CoffeeScript's syntax is definitely better-suited for this sort of thing than JavaScript's!

The main page says the library's in CoffeeScript, but the drag and drop example uses JavaScript. Do you have a similar (or even the same) example in CoffeeScript? I'd like to see what it looks like.

There are two parts to example: the plain functions, and the composition. CoffeeScript can make the plain functions look different, but the composition is the strangest looking; I need to find a better syntax for representing a directed graph in code, and CoffeeScript doesn't help with that part.