in reply to Re: On quoting the lhs of '=>'
in thread On quoting the lhs of '=>'

or Readonly

Replies are listed 'Best First'.
Re^3: On quoting the lhs of '=>'
by perrin (Chancellor) on Jul 09, 2008 at 20:55 UTC
    Honestly, I don't see the point. Are you trying to guard against accidental assignment? It doesn't seem worth the trouble to me.

      To guard and, equally importantly, to show in the code that this is an entity which is defined, but not going to be changed. Maybe it is because I always feel a bit uncomfortable with the idea of a variable which changes the value over the time. I feel more at home in the realm of functional programming, where you don't have assignment statements which modifiy the content of a variable.

      Of course this is personal taste, but I still find it good practice to make clear in the code when an entity is supposed to be a constant.

      -- 
      Ronald Fischer <ynnor@mm.st>