Skip to content

Make numeric constructors and arithmetic const.#3900

Merged
afck merged 1 commit intolinera-io:mainfrom
afck:const
May 7, 2025
Merged

Make numeric constructors and arithmetic const.#3900
afck merged 1 commit intolinera-io:mainfrom
afck:const

Conversation

@afck
Copy link
Contributor

@afck afck commented May 7, 2025

Motivation

It should be possible to e.g. define a const x: Amount using some addition and multiplication. (I ran into this in #3893.)

Proposal

Make more functions const. (Also fix a typo.)

Test Plan

N/A

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Links

@afck afck requested review from bart-linera, deuszx and ma2bd May 7, 2025 09:05
@afck afck merged commit d0d1aac into linera-io:main May 7, 2025
24 checks passed
@afck afck deleted the const branch May 7, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants