Maybe we forget about commas then, and extend if-clauses so that you can properly define variables at the beginning of it. Separated by semicolons.

string name;

if (string street = nextStreet();
    int number = nextNumber();
    auto person = new Person(name);

    person.livesAt(number, street))
{
    // use street, number, and person
}

Reply via email to