6 ms·
Why would you say that "Cello isn't really C"?
by feelix 10y ago
Why would you say that "Cello isn't really C"?
- orange_fritter 10y agoIt's arguable that extensive use of macros and faux-dynamic-typing violate the ideology of C that makes it simple and predictable.
- catnaroek 10y agoI'd remove the “faux”. Cello is dynamically typed.
- chme 10y agoThen you could say that just using void-pointers in C that C is also dynamically typed.
- catnaroek 10y agoNot void pointers per se, but if you use runtime information to determine how to interpret the data pointed by a void pointer, that's dynamic typing, yes.
- loeg 10y agoIn C you would only use void pointers very occasionally, to work around the lack of generics/templates in data structures. Most of the time, objects have types. In Cello, everything is a void pointer. Limited as it is, compiler type checking in C is still valuable.
- catnaroek 10y agoStatic typing gives types to expressions (in the program text), not to objects (at runtime).
- loeg 10y agoI'm not sure what you mean by objects at runtime. Can you elaborate? The sort of objects I interact with at runtime are typically typed structures, so I guess I don't understand your statement.
- catnaroek 10y agoObjects are runtime entities. They are created and manipulated when the program is running.