|
|
|
|
|
by neonsunset
563 days ago
|
|
While mutation of init-only properties is sometimes done by e.g. serializers through private reflection or unsafe accessors, it otherwise can lead to unsound behavior if class implementation does not expect this. You cannot bypass this through normal language means. Same applies to readonly instance fields. Where does "syntax sugar" end and "true features" begin? |
|