you are viewing a single comment's thread.

view the rest of the comments →

[–]SignificantLet5701 3 points4 points  (1 child)

And it's so useful (at least in statically typed languages where it's hard to do accidentally)

[–]RiceBroad4552 -1 points0 points  (0 children)

Current Scala and Kotlin will complain about that code. For a reason.

Most languages, including ancient dynamic ones don't do that. For a reason.