Ryan Winchester @winchester.dev ยท Apr 24

I don't know much about kotlin, so I looked up `when` and I'd use it for most things, too. I use `if` in the very specific case of a boolean expression I can't pattern match. A single if/else.

0 likes 2 replies

?

Replies

โœจ๐š—๐šŠ๐š—๐šŠ๐š–๐š’ ๐ŸŽ€ ยท Apr 24

but why when (myInt){ 69->println("noice") else -> println("not noice") } as an example of what I'm talking about

Ryan Winchester ยท Apr 24

And to avoid nesting `case` conditions, we can use `with`