Open mccanne opened 2 years ago
FYI for whoever might pick this up, back in the day on our internal wiki there was a partial write-up on this topic at https://lookylabs.atlassian.net/wiki/spaces/PROD/pages/159678469/Type+Coercion. Most of the specifics are probably too ancient to be relevant at this point, but there might be a couple nuggets of wisdom buried in there.
I spotted #1408 that looked like a duplicate of this one, so I've consolidated the text from there into the description of this issue and closed that one.
I wrote this up in the draft zng-beta spec knowing it went elsewhere, so I'm now taking it out of the spec and putting it here for someone to find a home in the zql docs for this. We should also discuss and make sure these are the semantics we want.
As a counterpoint, javascript does all sorts of type coercion in particular
(as in many other languages) but it also does crazy things like
but
@henridf says: