Live data from Hacker News

Ask HN: What would you tweak in C to make it a nicer language?

news.ycombinator.com

11–13 of 13 posts

Re: Ask HN: What would you tweak in C to make it a nicer language?

#11

Probably a legit macro system.

Any ideas on how it should look? Perhaps there are good examples in non lisp languages which have good systems, though i haven't tried them to know which is good.

My personal suggestion would be to borrow the nasm/yasm pre-processor. x264 has certainly used it to great effect.

Re: Ask HN: What would you tweak in C to make it a nicer language?

#12

Some handy little things: 1. Standard library support for safe arithmetic (easily capturing overflows, underflows, and so forth). 2. Standard library support for threading and synchronization primitives. 3. Mandated tail-call optimization through pragmas or perhaps just requiring it in the spec. 4. Create explicit and differentiated arithmetic and logical shift left and shift right. 5. Add a standard way of specifyin…

I'm confused by "if that ever comes out". C11 was released 3 years ago.
Post reply on HN