Forth-like, declarative external DSL, run in PHP and JavaScript.
Agnostic about client/server. Meaning, it runs the same code on both.
Example code:
when click button #search then // Bind event to browser button
GET dekra order by URI param ?search // Backend API call
if length > 1 then show order list // Show result from API call as a list in browser using Ajax
if length = 1 then populate order as receipt
if length = 0 then show error "Found no order"
"Test string to stack"
if length: > 1 then "hello" echo: endif
14:17 < vdupras> but hey, wait, isn't your proposal just syntactic sugar? If you make "if" into a noop, give "then" the meaning of traditional "if" and give "endif" the meaning of traditional then, you end up with pretty much what you want, without having to resort to stream peeking, right?