https://kotlinlang.org logo
Title
c

cygnus

09/30/2018, 5:34 AM
not a question, rather a highlighting of the fun of kotlin:
l

louiscad

09/30/2018, 12:20 PM
@cygnus Could you share the source?
h

Hamza

09/30/2018, 2:32 PM
i made this in a couple of minutes:
fun main(args: Array<String>) {

    val valid = Unit
    val code = 1
    val pretty = Unit
    val huh = Unit
    val i = Unit
    val write = Unit
    val sentences = Unit
    val have = Unit
    val `compile,` = Unit
    val stuff = Unit

    valid kotlin code..(pretty great huh)
    i can write whole sentences and have them `compile,` cool stuff

}

private infix fun Any.cool(smt: Any) = Unit
private infix fun Any.them(smt: Any) = Unit
private infix fun Any.and(smt: Any) = Unit
private infix fun Any.whole(smt: Any) = Unit
private infix fun Any.can(smt: Any) = Unit

infix fun Any.kotlin(smt: Any) = Unit
infix fun Any.great(smt: Any) = 4
c

cygnus

09/30/2018, 9:40 PM
there are a whole lot of ways to write it! maybe some random college student with too much time could just go ahead and implement the english langauge
h

Hamza

10/01/2018, 12:37 AM
are you hinting…