3 ms·
Another DSL. Structural DSL like this: form { input { name = "bob" label = "Bob" } button { action = #{bean.su
by nick_riviera 12y ago
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.
- mike_hearn 12y agoKotlinFX 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.
- kluge 12y agoYou might already be familiar with it, but this looks a lot like QML.
- nick_riviera 12y agoI wasn't actually - never used Qt (been stuck in win32 and Wx). Thanks for pointing it out :)