top | item 42970464

(no title)

kojolina | 1 year ago

Nah, rust also guides you to "death from a million paper cuts" aka RAII (aka everything is singularly allocated and free'd all over the place).

You need memory management to be painful like in C so that it forces people to go for better options like linear/static group allocations.

discuss

order

saagarjha|1 year ago

I assure you that people do not go for better options

nextn|1 year ago

Why is RAII bad?

RossBencina|1 year ago

RAII is fine when it is the right tool for the job. Is it the right tool for every job? Certainly there are other more or less widely practiced approaches. In some situations you can come up with something that is provably correct and performs better (in space and/or time). Then there are just trade-offs.

GoblinSlayer|1 year ago

Because it's micromanagement.