Remix.run Logo
ohdeargodno 2 days ago

Language.Builder().getOh().getYes().getJava().getIsSoNice().setFor(() -> { return "DSLs";});

No trailing lambdas, no infix operators, no @DslMarkers, no top level functions, and an infinite list of examples of Java verbosity making even the smallest thing look like an ancient greek epic. Java is utterly terrible for DSLs.

vips7L 2 days ago | parent [-]

   Language {
       oh {
           yes {
              Java {
                  isSoNice
           }
       }
   }

You can contrive awfulness in any language.
PaulHoule 2 days ago | parent [-]

The awfulness of one style of Java DSL is the awfulness of Lisp, that is

  building(of(S("expressions"),everything())
vips7L 2 days ago | parent [-]

Not going to lie, my brain doesn't really comprehend lisp. So the joke (or point?) is way over my head.