On Sunday, 6 February 2022 at 15:24:17 UTC, Paolo Invernizzi wrote:
@hold (or @held) ? donwannaopenacanofworms ... my last post really :-P

Pretend that you are a beginning D programmer, and you come across one of the following declarations while reading someone else's code:

    @use struct Result
    {
        // ...
    }

    @hold struct Result
    {
        // ..
    }

    @mustUse struct Result
    {
        // ...
    }

You have never seen any of these attributes before in your life, and there are no comments explaining what they mean--all you have to go on is the name. Which name is are you most likely to guess the correct meaning for: "use", "hold", or "mustUse"?

Reply via email to