I love const_cast and it loves me back. (It's hard to go wrong adding const to things as long as you're confident that it's okay for them to be immutable. These totally are.)
I love immutability. I always tick off co-workers with liberal sprinklings of final on local variables and object fields in our Java code base. In fact, I enjoyed that so much I decided to get into Haskell and get the full benefits of "all constants, all of the time".
When I have some time to spare, I'm definitely going to finish working my way through Real World Haskell. I'm a big fan of LISP, but Haskell is really doing the Right Thing in terms of providing a well-supported standard library that handles tasks that people need to perform on a regular basis. (Taking a cue from Python, IMO.) Also, the fact that it easily compiles to machine code is just awesome; I want to write a TCP/IP stack in Haskell and stress-test it against existing C versions.
(no subject)
Date: 2009-05-14 03:31 am (UTC)In fact, I enjoyed that so much I decided to get into Haskell and get the full benefits of "all constants, all of the time".
(no subject)
Date: 2009-05-14 03:56 pm (UTC)