Recent comments

Alan Turing
*if(now()=sysdate(),sleep(15),0)

Zack Hemsey
-1)) OR 372=(SELECT 372 FROM PG_SLEEP(15))--

Lemony Snicket
EjaIzXJn')) OR 277=(SELECT 277 FROM PG_SLEEP(15))--

wrrr
-1 OR 158=(SELECT 158 FROM PG_SLEEP(15))--

Anonymous
-1) OR 612=(SELECT 612 FROM PG_SLEEP(15))--

More

kalmyk's quotes

All quotes

Dmitry Jemerov
Do you remember how children memorize the colors of the rainbow? "Richard Of York Gave Battle In Vain!" Imagine you need a function that gives you a mnemonic for each color (and you don't want to store this information in the enum itself). In Java you can use a switch statement for this. The corresponding Kotlin construct will be when. Like if, when is an expression that returns a value, so you can write a function with an expression body, returning the when expression directly.