3 ms·
> That said, my few wishes for a C replacement would be generics, methods, and namespacing. I think my pet language (Myrddin) actually has you almost covered.
by ori_b 11y ago
> That said, my few wishes for a C replacement would be generics, methods, and namespacing.
I think my pet language (Myrddin) actually has you almost covered. It doesn't have methods, but it does have traits, which allow similar things at compile time.
https://github.com/oridb/mc https://github.com/oridb/mc
You have an example of generics and traits here, in the std namespace:
https://github.com/oridb/mc/blob/master/lib/std/htab.myr https://github.com/oridb/mc/blob/master/lib/std/htab.myr
https://github.com/oridb/mc/blob/master/lib/std/iterutil.myr https://github.com/oridb/mc/blob/master/lib/std/iterutil.myr