News for hackers. Stuff that matters.
Re:The Opa Language by dvt on Saturday July 11, 2015 @04:56AM (#9869115)
Don't get me wrong, I feel this is an awesome project, but this looks pretty weird:

    #msg = <div>Thank you, user number {/counter}!</div>
... especially when everything is moving into an MVC direction. I like keeping my logic separate from my template. I may be too hasty. I'll definitely download and check it out in more detail sometime this weekend.
Re:The Opa Language by klibertp on Saturday July 11, 2015 @08:15AM (#9869467)
> but this looks pretty weird

It's a classic DSL; it's more readable and easier to write than equivalent HTML/JS mix (it's both shorter and has less tokens). Such DSLs are used in some languages extensively, I think the most related is xexpr DSL, for example, http://docs.racket-lang.org/web-server/servlet.html#%28def._... (the part in the code snipped starting with "response/xexpr"). It's in Lisp, which means they could write it without messing with language parser, but the idea is pretty much the same.