Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fixing C

Name: Anonymous 2014-04-09 15:55

How to fix C?
What don't you like in C?

I do not like the many useless types while we could just define our own n-bit integer
also a a better typesystem for compile time checking would be nice
I also would like pure functions that I would be able to use outside of functions just like I do in macros

no sageposting allowed

Name: Anonymous 2014-04-10 13:46

Why do people keep complaining about C's types? It wouldn't make much sense to allow generic n-bit integer types. It would be substantially slower.

Name: Anonymous 2014-04-10 14:02

>>5,24
I don't understand this fixation on integer types either. It clearly can't be founded in a desire to interface with hardware that uses certain size integer types, since (in practice) the provided primitive types map directly to machine operand sizes.

Do lots of people need to be able to parse binary data that uses arbitrary size bitfields? Doing that in C is painful because doing it in machine language is also painful. The solution is to use a library or domain specific language that's intended for that.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List