I would argue that compile time type inferencing in Scala is not comparable to shortening an attribute name. The intent of the feature in Scala is not to lessen the number of characters typed, but to eliminate the need to explicitly specify the type of a variable if that type is obvious as that could be considered redundant. A side effect of this feature just happens to be fewer characters typed.
I would also argue that the only thing really gained by shortening the attribute names is fewer characters typed. After the debate over whose shortened attribute name has the best balance of conciseness and clarity, the only thing different is the number of characters typed. There is no added or simplified functionality. Additionally, with respect to refactoring and maintenance, I would argue that it's far more important to understand the TALES expression assigned to the attribute than having fewer characters to skip over to get to said expression. Anecdotally, I've found that the volume of characters that comprise the TALES expressions, especially for things like tal:attributes, so far out numbers those that comprise the attribute name that saving a handful of characters is made largely irrelevant. Darrell Hamilton, Software Developer, 4over, Inc [email protected] 818-246-1170 ext. 285 On Thu, Jul 14, 2011 at 12:26 PM, Anton Andriyevskyy <[email protected]> wrote: > Darrell, all this sounds good, but it the same ends up that we want to have > more concise html with shorter attributes. > Concise (but still readable) always wins - a good example would be Scala > programming language where compiler infers many things > automatically but still keeps things strongly typed, and this ends up with > very concise syntax, so I'm remaining > sure that conciseness is good and simplifies many things. In case of phptal, > not only writing of html becomes faster, > but also reading - which is very important when you do refactoring and > maintenance. > Regards, > Anton Andriyevskyy > Business Automation & Web Development > > > On Thu, Jul 14, 2011 at 8:47 PM, <[email protected]> wrote: >> >> Thank you for contacting Canterris. I???m currently out of the office >> until July 25. Please feel free to contact Will Freemen >> ([email protected]) or Canterris Technical Support ([email protected]) >> for any support requests. >> >> _______________________________________________ >> PHPTAL mailing list >> [email protected] >> http://lists.motion-twin.com/mailman/listinfo/phptal > > > _______________________________________________ > PHPTAL mailing list > [email protected] > http://lists.motion-twin.com/mailman/listinfo/phptal > > _______________________________________________ PHPTAL mailing list [email protected] http://lists.motion-twin.com/mailman/listinfo/phptal
