Skip to main content

New answers tagged

2 votes

Exception handling: 'catch' without explicit 'try'

You are losing a lot. For example, in Swift a non-throwing function isnt allowed by the compiler to call a throwing function outside a try block - which means that I, as the developer, know definitely ...
gnasher729's user avatar
4 votes

Exception handling: 'catch' without explicit 'try'

In Ruby, an exception handling block looks like this: ...
Jörg W Mittag's user avatar
0 votes

Is it possible to implement a WeakMap with primitive keys and weak values?

Probably a bit late for that thread, but this is how I implemented the requirements using WeakRef and FinalizationRegistry... ...
Jonathan Kaeser's user avatar

Top 50 recent answers are included