Skip to content

Comment on XHP: A New Way to Write PHP (from Facebook)

Comments

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?) }

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.