Does Ada perform layout optimizations on the niches ?
Re:Rust 1.50
by johnisgood on Friday February 12, 2021 @10:20PM
(#26121105)
I think the terminology is completely different, so I am not quite sure. Perhaps someone who knows Ada/SPARK and its compiler better may be able to answer you.
You can catch a hell lot of things at compile-time. Correctness is huge in Ada/SPARK. You write safety-critical software in it. I have a comment on Ada/SPARK in great detail, but I do not have the time to find it sadly. :(
Consider this:
"Any attempt to assign a negative value to variable Total results in raising an exception at run time. During analysis, GNATprove checks that all values assigned to Total are positive or null."Analysis here means static analysis.
You can do stuff like this, too, for example:
The above is actually declared in the visible part of package Standard.