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 expressions #132

Open pjljvandelaar opened 1 year ago

pjljvandelaar commented 1 year ago

Dear Gprbuild developers,

Since Ada2012 the if expression is supported. Using the if expression in many cases improves the readability of the code.

Greetings, Pierre

P.S. When you see no if expression in the change, the code is simplified even further to improve readability.

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

pjljvandelaar commented 1 year ago

After this pull request, you might want to change some functions into expression functions to make the code even more readable!