Justin du Coeur (jducoeur) wrote,
Justin du Coeur

The dangers of an highly flexible language

Scala (my new language of choice) is a delight in many ways, and I'll be talking about one of the serious ones shortly.

However, it has its dangers, particularly in the sheer degree of metaprogramming it allows. This is surely nowhere better illustrated than in the recent scala-lolz library. This entirely functional but horrifying piece of code adds such things as:
  • The ability to throw exceptions with OH NOES !! and test them with OMG

  • Equality testing with IZ

  • Assertions !!!!!!!! (non-null), ?!!? (true) and Can has (general)
As a technology demonstration, it's actually kind of impressive. But the opportunities for obfuscating code in new and terrible ways are positively Lovecraftian...
Tags: programming

  • The Third Way: Beyond Fun and Authenticity

    I just came across this marvelous essay on the SCA fun/authenticity false dichotomy, and a different way of looking at it. It was written some…

  • Fairy Lights

    One surprising highlight from 50 Year doesn't seem to have made it into many accounts -- I think our encampment was particularly well-placed in this…

  • Animal-friendly events are just *different*

    (As usual for when I've attended something long, I'll be posting some random reminiscences.) Being held at a 4-H Fairground, SCA 50th Year was just…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded