Support 'unchecked' at the function-declaration level #11269
Labels
closed due inactivity
The issue/PR was automatically closed due to inactivity.
language design
Any changes to the language, e.g. new features
stale
The issue/PR was marked as stale because it has been open for too long.
Abstract
It is a typical scenario for an entire function to be implemented with native (unsafe until solc 0.8.0) arithmetic operations, in order to optimize its performance, and under the author's knowledge of the function being robust for arithmetic overflows.
Motivation
According to the official documentation:
Subsequently, one cannot implement a
modifier
which would allow "declaring" an entire functionunchecked
.Specification
Please consider supporting
unchecked
at the function-declaration level, in order to allow for cleaner code.The text was updated successfully, but these errors were encountered: