opendlang / opend

Boost Software License 1.0
76 stars 17 forks source link

On the GC vs noGC divide #34

Open MarvinHannott opened 5 months ago

MarvinHannott commented 5 months ago

I think this divide is completely avoidable if data structures just accept an allocator argument. That would also make it much easier to mix strategies. Sure, that might mean that builtin dynamic arrays and hashmaps have to go because they don't have a destructor. But to be honest, thanks to operator overloading, library solutions are just as ergonomic. In practice you don't feel any difference. And maybe it would be a good thing to have fewer primitives builtin.