On 21/05/2015 20:20, Marvin Humphrey wrote:
We could even consider removing To_I64, To_F64, and To_Bool. They're used in
Lucy mostly when reading JSON data. But it looks like the actual data type
is mostly known, so the deserialization code could CERTIFY the input and
call the appropriate conversion method on either Strings or Nums.

+1, please remove!

OK, then I would start by making the necessary changes to Lucy. There are many places where numbers are stored as JSON strings and the deserialization code supports both JSON string and numbers. Is this important or can I just assume JSON strings everywhere?

That leaves the following methods on Obj.

     Destroy
     To_Host
     Clone
     Compare_To
     Equals

and To_String.

Nick

Reply via email to