4 ms·
A few years ago Peterpaul developed a lightweight object-oriented system on top of C that was really pleasant to use[0]. No need to pass in the object explicit
by pakl 1y ago
A few years ago Peterpaul developed a lightweight object-oriented system on top of C that was really pleasant to use[0].
No need to pass in the object explicitly, etc.
Doesn't have the greatest documentation, but has a full test suite (e.g., [1][2]).
[0] https://github.com/peterpaul/co2 https://github.com/peterpaul/co2
[1] https://github.com/peterpaul/co2/blob/master/carbon/test/pass/Object.test https://github.com/peterpaul/co2/blob/master/carbon/test/pas...
[2] https://github.com/peterpaul/co2/blob/master/carbon/test/pass/class_decl_inheritance.test https://github.com/peterpaul/co2/blob/master/carbon/test/pas...
- guerrilla 1y agoFor people wondering what it looks like without the syntactic sugar of carbon then look here [0]. As far as I can see, there's no support for parametric polymorphism. 0. https://github.com/peterpaul/co2/tree/master/examples/my-object/src https://github.com/peterpaul/co2/tree/master/examples/my-obj...
- 1718627440 1y agoDoesn't look much different than GLib the base for the GTK implementation (and other things in GNOME, the GNU Network _Object_ Model Environment).
- cryptonector 1y agoObjects yes, classes and inheritance no. Just interfaces please.
- saagarjha 1y agoI feel like Vala tries to fit in this niche too.