GIGO: words unreadable aloud
Mishrogo Weedapeval
 

 

  Saturday 16 December 2006
Scala implicits, Lisp macros, debugging, and cleverness

The Scala Programming Language has a notion of implicit parameters and implicit conversions, invoked when normal function call resolution methods fail.

On the Scala mailing list, Scala's designer Martin Odersky writes:

... implicits are very powerful but also easily abused. [...] they enable you to do some amazing things. But, amazing is not always what you want.

Which mirrors almost precisely how I feel about macros in Lisp.

If you s/amazing/clever/g, it also reminds me of this quote by Brian W Kernighan:

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

(As mentioned three years ago by Charles and Ned).
10:58:35 AM   comment/     



Click here to visit the Radio UserLand website. Click to see the XML version of this web page. © Copyright 2007 Doug Landauer .
Last update: 07/2/6; 23:29:05 .
Click here to send an email to the editor of this weblog.

December 2006
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Nov   Jan

Previous/Next