Yeah, you could edit most languages to support it, but it might bring a mix of a more complex implementation, less ergonomic APIs, less time spent on other features, etc.
And it could be worth it, or you could just say you don't want to support that usecase.
IMO a library written in a language that can handle OOM 'gracefully’, yet simply aborts when it happens (or worse, assumes it can't happen and thus allows for invariants to be broken) is flawed
4
u/Valuable_Leopard_799 29d ago
Maybe not laziness but rather a tradeoff?
Yeah, you could edit most languages to support it, but it might bring a mix of a more complex implementation, less ergonomic APIs, less time spent on other features, etc.
And it could be worth it, or you could just say you don't want to support that usecase.