tag:blogger.com,1999:blog-34454975.post6614331987647464111..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: JavaStrict - Strict Type arguments / returned values with JavaScriptAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-34454975.post-57764466151806179472007-05-24T10:10:00.000+02:002007-05-24T10:10:00.000+02:00it can be very confusingStrict Type that make code...<I>it can be very confusing</I><BR/>Strict Type that make code more confusing ?!? ... It's a bit nonsense :)<BR/><BR/><BR/><I>no type hinting is part of javascript character</I><BR/>That's why we often spend too much type to verify arguments or to debug code when some value is not the expected one.<BR/><BR/>That's why I created this function, that should help developers to create more debuggable and probably stable libraries.<BR/><BR/>The good thing is that when Yuo don't need Strict, You can just change Strict shortcut function, for example, returning dierctly the callback.<BR/><BR/>However just use it if You need them :DAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-39966192761525375762007-05-23T23:17:00.000+02:002007-05-23T23:17:00.000+02:00It's very interesting I didn't think that this wou...It's very interesting I didn't think that this would be possible..but I'm not sure is it practical - it can be very confusing. It's like changing language functionality.. no type hinting is part of javascript character and I think that it is better to go with it than against it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-61575175634280545102007-05-22T12:09:00.000+02:002007-05-22T12:09:00.000+02:00null is typeof "object" but isn't an instanceof Ob...null is typeof "object" but isn't an instanceof Object.<BR/><BR/>An undeclared variable is not null but is undefined ... I need to shink about corect/expected behaviour with Void, "nullable" or undefinedAndrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-50608239859702814512007-05-21T23:12:00.000+02:002007-05-21T23:12:00.000+02:00i think that null IS a object.so null must be pars...i think that null IS a object.<BR/>so null must be parsed like object.kentaromiurahttps://www.blogger.com/profile/01628828429767241919noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-26277722624217810192007-05-21T20:35:00.000+02:002007-05-21T20:35:00.000+02:00Anyone interesting? :/However, I wonder if "null" ...Anyone interesting? :/<BR/><BR/>However, I wonder if "null" values should be usefull to parse or not ... could anyone tell me what does He think "null" values should do?Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.com