The dangers of an highly flexible language
Mar. 2nd, 2009 03:03 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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:
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 withOMG
- Equality testing with
IZ
- Assertions
!!!!!!!!
(non-null),?!!?
(true) andCan has
(general)