Hacker News new | ask | show | jobs
by shaunxcode 5972 days ago
Another awesome example of the lengths people will go to compensate for a lack of macros.

I would so much rather see (define table (html-table (map [tr (td _)] rows)))

then

$table = <table>; foreach($rows as $row) { $table->appendChild(<tr><td>{$row}</td></tr>); (assuming this is even possible?) }

1 comments

I was just about to make this comment.

I think one of lisp's adoption problems is that it makes things that are just simply amazing become commonplace.