I would say this matches more what he wanted: ``` ...
# announcements
s
I would say this matches more what he wanted:
Copy code
class Foo {
    private var _abcLong: Long?  = null
    private var _abcString: String?  = null
    
    var abcLong: Long?
        get() = _abcLong ?: _abcString?.toAbcLong()
        set(value) {
            _abcLong = value
            _abcString = null
        }
    
    var abcString: String?
        get() = _abcString ?: _abcLong?.toAbcString()
        set(value) {
            _abcString = value
            _abcLong = null
        }
                
    private fun String.toAbcLong() : Long = TODO()
    private fun Long.toAbcString() : String = TODO()
}