Kotlin stub/placeholder function for unimplemented code

2.3k Views Asked by At

Scala's Predef has a bunch of shorthand functions including one for unimplemented code, namely ???. Does Kotlin have anything similar rather than having to resort to the longhand

throw Error("Code not yet implemented")
1

There are 1 best solutions below

6
On BEST ANSWER

Since Kotlin 1.0, you can use the TODO function from the Kotlin standard library, which takes an optional message.