I have a snippet of code like this:
    scope chordAngle = new S1ChordAngle(_center, other._center);
    return _radius + other._radius >= chordAngle;

The reason the "scope" temporary variable exists is to avoid a heap allocation and instead prefer a value be created on the stack. Is there a way to do this inline?

Something like:
return _radius + other._radius >= scope new S1ChordAngle(_center, other._center);

Reply via email to