tag:blogger.com,1999:blog-34454975.post2686811829159979749..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: Unobtrusive Blog Entry DateAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-34454975.post-85819316418076156542009-12-12T07:44:40.757+01:002009-12-12T07:44:40.757+01:00emm.. cognitively style :)emm.. cognitively style :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-29726776143512998622007-03-13T16:23:00.000+01:002007-03-13T16:23:00.000+01:00Ok Matteo, I've just add new post about your quest...Ok Matteo, I've just add <A HREF="http://webreflection.blogspot.com/2007/03/function-or-var-function-part-2.html" REL="nofollow">new post</A> about your question :)Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-44920477347506560762007-03-13T15:57:00.000+01:002007-03-13T15:57:00.000+01:00Matteo there's any particular reason to encapsulat...Matteo there's any particular reason to encapsulate one or more function in for loop declaration or inside the function itself.<BR/><BR/>function createDateTime(){<BR/>function p(){...};<BR/>function className(){...};<BR/>for(var span = ...){};<BR/>}<BR/><BR/>I used directly variables type instead of functions but speed and quality is quite the same.<BR/><BR/>Finally You could declare any type of variable inside a for loop, You just need to remember <B>var</B> and coma after each temporary scope vriable (and this is the same for future <B>let</B> declaration).Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-17900457753406042252007-03-13T14:51:00.000+01:002007-03-13T14:51:00.000+01:00Andrea, perhaps I missed some your posts about tha...Andrea, perhaps I missed some your posts about that... but, I'm curious about the way you encapsulate functions in the FOR cycle. Can you please explain your choice and the related reasons? Thank youAnonymousnoreply@blogger.com