Timeline for What are and how do (data-) types work?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 29, 2014 at 7:57 | comment | added | Bart van Ingen Schenau | In C, structs and arrays have sub-elements. For other types, point 2 will indicate that there are no sub-elements. | |
Jan 28, 2014 at 21:10 | comment | added | user114515 |
In C point 2 of your list applies to struct s, right? Anything else besides that?
|
|
Jan 27, 2014 at 9:35 | comment | added | Phoshi | An important addition to this, I think, is how python treats variables. Wheras in C you can allocate something on the stack and have an actual chunk of memory as the "value" of your variable, python has every variable being closer to a pointer. A list<literally anything> in C, therefore, would be hugely complex and impossible to typecheck; a list<anything> in Python is simply a list of identically sized pointers and requires no special-casing at all. | |
Jan 27, 2014 at 8:30 | history | answered | Bart van Ingen Schenau | CC BY-SA 3.0 |