Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another DSL. Structural DSL like this:

   form {
      input {
         name = "bob"
         label = "Bob"
      }
      button {
          action = #{bean.submit}
      }
   }
I've actually wrote a C code generator DSL over the top of Win32 many years ago that did this so the financial app I was working on so we didn't have to write millions of dialogs in win32 loops.


KotlinFX defines something a bit like this.

That said, I found FXML + IntelliJ to be quite painless. The closing tags are verbose when you have small toy examples but in big files they help orient you by reminding you what the end of a block is. And I mostly use Scene Builder anyway.


You might already be familiar with it, but this looks a lot like QML.


I wasn't actually - never used Qt (been stuck in win32 and Wx). Thanks for pointing it out :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: