jducoeur: (Default)
[personal profile] jducoeur
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...

(no subject)

Date: 2009-03-02 10:47 pm (UTC)
From: [identity profile] metahacker.livejournal.com
Reminds me of Intercal. "Pleaz maek mi file kthxbi!"

(no subject)

Date: 2009-03-03 07:04 am (UTC)
siderea: (Default)
From: [personal profile] siderea
• Equality testing with IZ

I was about to say, "Well at least that disambiguates it from assignment".

And then I thought, "Not if you do it right...."

(no subject)

Date: 2009-03-04 03:28 am (UTC)
From: [identity profile] metahacker.livejournal.com
IZ IN UR VARIABLZ
CONFLATIN' MEMES

Lovecraft

Date: 2009-03-03 01:05 pm (UTC)
From: [identity profile] metageek.livejournal.com
the opportunities for obfuscating code in new and terrible ways are positively Lovecraftian...

Well, it's not completely new; Lisp has it, and so does Perl. But that's a lovely description; I'm going to have to share it with people at work.

Profile

jducoeur: (Default)
jducoeur

June 2025

S M T W T F S
12 34567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags