Hacker News new | ask | show | jobs
by xrrocha 1264 days ago
This is reminiscent of JavaFX's original F3 formulation (aka JavaFX Script): object literals reflecting the GUI visual structure.

JavaFX started out as a Java library on top of Swing but the lack of object literals and lambdas led to the creation of the F3 language (code-named foo for "funcional object-oriented").

Despite Java's progress since then its syntax still feels somewhat rigid. Sierra looks very nice indeed. It could benefit from a more fluid, less syntax-encumbered DSL laid on top of it in Kotlin or Scala.

1 comments

Thanks for the feedback. I did consider using Kotlin but wanted to make sure it worked at least minimally in Java first.
Yeah, Implementing the framework as such in Java with no other dependencies is a sound decision, imho.

Laying out a Kotlin DSL on top of it could be an excellent opt-in feature to leverage the core in a more declarative way