🚀 Feature Request
Motivation
The following reasonable code:
auditor.epoch += should_increment as u64;
...does not compile:
error: expected `integer` but found a value of type `bool`
┌─ /Users/alinush/repos/aptos-core/aptos-move/framework/aptos-experimental/sources/confidential_asset/confidential_asset.move:733:26
│
733 │ auditor.epoch += (should_increment as u64);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
Pitch
Describe the solution you'd like
Allow casting bool to u64 via the as keyword.
Describe alternatives you've considered
None.
Are you willing to open a pull request? (See CONTRIBUTING)
Maybe.
Additional context
🚀 Feature Request
Motivation
The following reasonable code:
...does not compile:
Pitch
Describe the solution you'd like
Allow casting
booltou64via theaskeyword.Describe alternatives you've considered
None.
Are you willing to open a pull request? (See CONTRIBUTING)
Maybe.
Additional context