AdaCore / gprbuild

GPRbuild is an advanced build system designed to help automate the construction of multi-language systems.
Other
65 stars 21 forks source link

prefer if expression over declare + overwrite #130

Open pjljvandelaar opened 1 year ago

pjljvandelaar commented 1 year ago

Dear Gprbuild developers,

Prefer if expression instead of declaring variable and overwriting it later.

Greetings, Pierre

P.S. Might want to add keyword constant to resulting declaration to signal that it is never changed anymore after initialization.

Problem detected and solved by Rejuvenation-Ada crate vote for Rejuvenation-Ada as The 2022 Ada Crate Of The Year