News for hackers. Stuff that matters.
Re:Esoteric C++ Contest 2018 by otabdeveloper2 on Saturday March 23, 2019 @10:22AM (#19470541)
> Behold, I present you this fucking monstrosity

It's just a Lisp-like language with a slightly different syntax for S-expressions. Ugly, like all Lisps, but nothing 'monstrous'.

Re:Esoteric C++ Contest 2018 by bjoli on Saturday March 23, 2019 @11:22AM (#19470816)
How far down the rabbit hole must one be to not think that is monstrous?
Re:Esoteric C++ Contest 2018 by otabdeveloper2 on Saturday March 23, 2019 @11:40AM (#19470884)
The cognitive dissonance required to believe that C++ templates are 'monstrous' while Lisp S-expressions are awesomely useful and productive is enormous.

C++ templates are far from user-friendly, but they're literally (literally) just Lisp S-expressions with a Lisp syntax and semantics.

Re:Esoteric C++ Contest 2018 by pjc50 on Saturday March 23, 2019 @01:35PM (#19471389)
The semantics of template resolution are important, and unlike anything I'm aware of in Lisp.
Re:Esoteric C++ Contest 2018 by stagger87 on Saturday March 23, 2019 @12:20PM (#19471050)
Short of writing your own DSL, how would you solve the problem the above code snippet is attempting to solve in C++?

I understand complaining about templates like the ranges example also posted in this thread, but I am curious to hear what you think is the alternative for this specific example.