Re: ADG Bug of the day

2014-03-11 Thread Alex Harui
Not surprising. The question is whether you truly care if null is supposed to be a separate value than undefined. On 3/11/14 12:17 AM, "Justin Mclean" wrote: >Hi, > >> I won't veto it (unless you use == instead of ===). I think >> all undefined checks should use ===. Otherwise it would match

Re: ADG Bug of the day

2014-03-11 Thread Alex Harui
It is (was) common to use * for a three-value boolean where undefined means "not-specified, check somewhere else" On 3/11/14 3:08 AM, "Justin Mclean" wrote: >Hi, > >> I would say to use a proper data type. Would like to think we didn't >>blindly use * for things just for the sake of convenience

Re: ADG Bug of the day

2014-03-11 Thread Justin Mclean
Hi, > I would say to use a proper data type. Would like to think we didn't blindly > use * for things just for the sake of convenience. That was my very first though but it's part of a public API so we can't easily change that. Thanks, Justin

RE: ADG Bug of the day

2014-03-11 Thread Maurice Amsellem
>I think all undefined checks should use ===. Thanks Alex for the tip, I didn't know that. I think my code needs some review ;-) Maurice -Message d'origine- De : Alex Harui [mailto:aha...@adobe.com] Envoyé : mardi 11 mars 2014 08:00 À : dev@flex.apache.org Objet : Re: A

RE: ADG Bug of the day

2014-03-11 Thread Kessler CTR Mark J
I would say to use a proper data type. Would like to think we didn't blindly use * for things just for the sake of convenience. -Mark -Original Message- From: Alex Harui [mailto:aha...@adobe.com] Sent: Tuesday, March 11, 2014 2:32 AM To: dev@flex.apache.org Subject: Re: ADG Bug o

Re: ADG Bug of the day

2014-03-11 Thread Justin Mclean
Hi, > I won't veto it (unless you use == instead of ===). I think > all undefined checks should use ===. Otherwise it would match null. JFYI There probably 100+ places in the SDK were we use == undefined rather than == undefined. From a quick search it look like === undefined is used is a few

Re: ADG Bug of the day

2014-03-11 Thread Justin Mclean
Hi, > I don't know how much you'll actually save after the JIT No idea either - plus it very likely this is not exactly a bottle neck in the ADG code. But the original code did offend me as it's meaning was IMO less than clear. Thanks, Justin

Re: ADG Bug of the day

2014-03-11 Thread Alex Harui
There are plenty of places to improve SDK code. If that's your itch, start scratching. I don't know how much you'll actually save after the JIT, but hey, I won't veto it (unless you use == instead of ===). I think all undefined checks should use ===. Otherwise it would match null. -Alex On 3/

Re: ADG Bug of the day

2014-03-10 Thread Justin Mclean
Hi, And give the default is undefined it make sense to make that the faster path IMO. Am I missing something? Do you think otherwise? Thanks, Justin

Re: ADG Bug of the day

2014-03-10 Thread Justin Mclean
Hi, > At Adobe, the policy was GIGO (Garbage In, Garbage Out). If you provide > values outside of the allowed values, we did not promise anything > reasonable would happen and we generally did no check the values assigned. > Do we want to switch to a policy to fatten and slow down the SDK with >

Re: ADG Bug of the day

2014-03-10 Thread Alex Harui
At Adobe, the policy was GIGO (Garbage In, Garbage Out). If you provide values outside of the allowed values, we did not promise anything reasonable would happen and we generally did no check the values assigned. Do we want to switch to a policy to fatten and slow down the SDK with input checking

ADG Bug of the day

2014-03-10 Thread Justin Mclean
Hi, Anyone see anything wrong with this method (from the ADG)? mx_internal function columnWordWrap(c:AdvancedDataGridColumn):Boolean { if (c.wordWrap == true) return true; if (c.wordWrap == false) return false; return wordWrap; } Turns