Constants #387

Closed
opened 2022-06-07 21:44:58 +09:00 by zxq9 · 0 comments
zxq9 commented 2022-06-07 21:44:58 +09:00 (Migrated from gitlab.com)

Created by: radrow

It would be nice to have compile-time constants, so we don't need to use functions for that. Constants should be known at compile time and inlined into usages.

contract C =
  let addr = ak_123123123
  
  entrypoint withdraw() = Chain.spend(Contract.balance, addr)
*Created by: radrow* It would be nice to have compile-time constants, so we don't need to use functions for that. Constants should be known at compile time and inlined into usages. ``` contract C = let addr = ak_123123123 entrypoint withdraw() = Chain.spend(Contract.balance, addr) ```
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/sophia#387
No description provided.