|
|
|
|
|
by yencabulator
426 days ago
|
|
If that's a thing commonly needed for basic operations like letting your event handler actually access the event details, then very much yes. Sane languages have a downcast mechanism that doesn't pretend it succeeds every time. |
|
Also weird that Typescript has exactly the mechanism you're talking about. Why are you acting like it doesn't?