Closed caiorcferreira closed 5 months ago
@caiorcferreira Thanks for the PR! I see in the PR that this re-did all the indenting of a bunch of files. Can you set your indent settings to the same as this repo and update the PR? Thanks!
@philhassey I think now it has the original indenting.
@caiorcferreira Thanks! Can you add a doc string to the two new functions?
@philhassey just added!
For curiosity, why represent decimals using int64
? Cedar Rust also does it?
@caiorcferreira Thanks for the docs, I suggested shortening them, I think that'll be easier to read.
I don't recall if int64 is the underlying type in Rust, but if you look at the docs: https://docs.cedarpolicy.com/policies/syntax-datatypes.html#datatype-decimal
It seems like that's the range that this was made for.
Thanks @caiorcferreira !
Closes #8
Description of changes:
Expose
newDecimalValue
andnewIPAddr
functions as public methods.