3 ms·
The thing I like C for is the simplicity. Writing C after working in a very verbose language for a while is refreshing. That said, my few wishes for a C replace
by dalailambda 11y ago
The thing I like C for is the simplicity. Writing C after working in a very verbose language for a while is refreshing. That said, my few wishes for a C replacement would be generics, methods, and namespacing. The last two are to avoid funky naming schemes everywhere. Maintaining the proper low level control and simplicity would be a top priority though.
Overall this project looks interesting. I'm interested to see where it goes in the future and what design trade offs end up being implemented.
- lsd5you 11y agoI don't really understand this point of view. Is C not (very) verbose? Even if it's just because of the manual memory management.
- dalailambda 11y agoIn a way it's verbose, but less so on a syntax level. There's no need to deal with interfaces, classes, or exceptions. The boilerplate code you write tends to serve a practical purpose, as opposed to a syntactical one. Sure you have to deal with a lot of error handling and memory management yourself, but the language doesn't get in your way or create much friction.
- 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