Hacker News new | ask | show | jobs
by jf 648 days ago
Why choose between PHP and JavaScript when you can write code in CASSIS, a language that runs in the syntactical intersection of both languages?

For example:

  if (js()) {
   /* javascript */
  }
  else {
   /* PHP */
  }
https://github.com/tantek/cassis
5 comments

https://tantek.com/cassis.js

I don't know what to say, just that I wish I hadn't read this code

function sxg_to_num($s) is a beauty.
The HyperTalk support is touching
That looks so... unholy...
The Dunwich horror, but with languages.
As someone whose primary languages right now are PHP and JS...

...that looks incredibly cursed.

Hahaha I love this comment and love that this is a thing.
This is why we can't have nice things.