Hi all,

I'd like to propose another casting/parsing related step, asBool(), to be added 
as a new step into the 3.8 release. 

This step would essentially accept Boolean, Number, and String types, parsing 
them into boolean values where applicable, and in case of non-parsable input, 
it will output null, in other words:
1. Numerical values of zeros would be considered as false, all non-zero values 
would be true. 
2. String values of parsable into true or false (regardless of capitalization) 
will be accepted, all other strings will return null
3. All other input types will throw the IllegalArgumentException. 

I've put out a proposal (https://github.com/apache/tinkerpop/pull/3135) with 
some additional details, please feel free to leave comments and suggestions. 

Cheers,

Yang

Reply via email to