Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just want:

C with:

- bounds checking

- use after free checks

- modules

- sane metaprograming/template

- tagged union built in

without:

- macro

- pre declaration

- split header/source

That's it, no borrow checker, no weird syntax, no nothing

So far D is the answser for me, but i'm worried about its future, will they keep improve the language in that direction? or will they continue with their high level stuff

Zig/Jai/Odin so far are looking interesting, the problem is they all depart from the C syntax, wich is annoying, the only syntax i'd like to change is the primitive type, i32/f32/size/usize, and that's it, no need more



I have a similar list, but I think part the difficulty with C replacements is that the sort of people who want to go out and write a new language generally do so because they have something more radical in mind.

I have pondered forking tinycc and using that as a startpoint for a more conservative set of changes like you describe. It would limit the amount of work to be done and lead to something useable quite quickly.


Have you looked at C3 (the language OP is making)? I think it hits a lot of your boxes.


I looked at it; and i'm not really a fan of the syntax, `fn` feels out of place

Also no language server is a hard pass, tooling is important




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: