My current use case is this: ``` override fun curr...
# language-proposals
b
My current use case is this:
Copy code
override fun currentSegment(coords: DoubleArray?): Int {
    try { // prepare to defer
        if (coords != null) {
            coords[0] = (if (isEndPoint) end else start).x
            coords[1] = (if (isEndPoint) end else start).y
        }
        return if (isEndPoint) SEG_LINETO else SEG_MOVETO
    } finally { // defer
        if (isEndPoint) {
            didProcessEndPoint = true
        }
    }
}