Re: empty fields in SCXML events.

Le 5 apr 2013 à 19:38, Jim Barnett a écrit :

> So we say that the values of empty event fields is ‘Undefined’?  I don’t care personally, I just want something that ECMAScript programmers will find intuitive and consistent.

They (we) will have no problem with 'undefined'. Honestly, it won't matter since you rarely do if(value===undefined) in real code. Unless you expect "" or similar falsy values and you intend to treat them differently. But "" is not a valid event name, or origin, or type, etc, so there is no reason not to test if(value) and thus ignore the type.
"" is a valid event.data but so is undefined or any other special value that we come up with.

			David

Received on Friday, 5 April 2013 18:03:27 UTC