Michael Peters wrote:
Richard Jones wrote:
Actually prefer $c these days as a) it's shorter and therefore quicker
and less easy to mis-spell (I seem to type slef more often than self),
but more importantly, having done a lot of work with Catalyst
recently, that's the Cat standard also, so it's familiar to me.
This actually came up in our discussions and we thought it would cause
more confusion since in Catalyst the $c is not $self. It's a different
object entirely. So calling it $c in C::A land might confuse the
catalyst folks since it's really $self just shorter. Also, for folks
playing with Titanium (which btw, does not have a friendly abbreviation
:) do you plan on still using $c? Or will you go with $t?
Yes it's true it could be confusing as we won't need to *manually* shift
the class object into a variable any more, so the self-documenting
nature of this step is effectively lost to the unfamiliar observer.
For me though, I still think I prefer the shorter form as it's used in
all rms and sometimes multiple times within an rm. And providing it
doesn't clash with any other abbreviated variable name and its use is
consistent throughout I think it should be OK. Personally I'd be happy
to use $t for the Titanium object since the letter 't' is even closer to
the '$' key than is the letter 'c' ;)
--
Richard Jones
##### CGI::Application community mailing list ################
## ##
## To unsubscribe, or change your message delivery options, ##
## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ##
## ##
## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ##
## Wiki: http://cgiapp.erlbaum.net/ ##
## ##
################################################################