Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[RFC] finally for handled_sequence_of_statements #105

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

raph-amiard
Copy link
Member

@raph-amiard raph-amiard commented Aug 16, 2023

@Glacia
Copy link

Glacia commented Aug 18, 2023

Most languages with exceptions (Java, C#, C++, Python, ...) have a finally block.

C++ doesn't have Finally.

@raph-amiard
Copy link
Member Author

Drat, I stumbled upon the one feature C++ doesn't have! 😇 More seriously, thanks @Glacia, I'll amend the RFC.

@filip-gajowniczek-adacore

For consistency with the other keywords I would recommend the keyword should be either a noun (to match exception block naming) or a verb (to match the begin...end pair of a block).

Since conceptually this seems like a generalization of Finalization, perhaps the keyword "finalize" could make sense.

@sttaft
Copy link
Contributor

sttaft commented Nov 9, 2023 via email

@dkm dkm mentioned this pull request Dec 8, 2023
@raph-amiard
Copy link
Member Author

@filip-gajowniczek-adacore I don't think such consistency exists ("exception" for the exception handler), and "finally" feels pretty natural.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
Status: Need review
Development

Successfully merging this pull request may close these issues.

6 participants