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

(no subject)

Date: 2009-05-14 03:31 am (UTC)
From: [identity profile] http://users.livejournal.com/_rck_/
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".

(no subject)

Date: 2009-05-14 12:26 pm (UTC)
From: [identity profile] marapfhile.livejournal.com
i wrote an immutable-programming-based tetris a couple days ago, partly out of boredom and partly as an exercise. (all functions take a piece and/or a board, apply some change, and return the new piece and/or board.) it's an interesting style to work in after a decade or so of unmitigated imperative coding.

(no subject)

Date: 2009-05-14 03:13 pm (UTC)
From: [identity profile] dv-girl.livejournal.com
I confess I both love and hate the C++ implementation of const.

Conceptually, I like it, but in practice, the syntax tends to drive me totally up the wall. It's not hard but it always bogs me down because I have to stop for a half-second and remember what const before and const after mean. Interrupts my workflow.

Profile

maradydd: (Default)
maradydd

September 2010

S M T W T F S
   1234
567891011
12131415 161718
19202122232425
26 27282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags