Recent comments

Matthew Fraser
Would I vote for Jeff? Probably not. But this was one legendary speech.

unknown
You come to me on the day my daughter is to be wed...

Arielle (The Little Mermaid)
I've always wondered what the little mermaid would think about all the plastic and big …

Anonymous
Here's the short story if anyone's interested. I think it's okay: https://alltimeshortstories.com/salty-coffee-a-love-story/

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

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.