I was usually demonstrating very similar example on OSX, and it crashed brilliantly each time. Then one day I had to run it on Windows. And suddenly, there was no exception. I freaked out.

Turns out Windows doesn’t have such limitation. Instead, it’ll try very hard to swap.

Solutions Architect @Depop, author of “Hands-on Design Patterns with Kotlin” book and “Web Development with Kotlin” course

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store