7 ms·
Scheme is a small language as well, and it is worlds better for teach abstract concepts. You can write far more elegant and compact implementations of data str
by betterunix 13y ago
Scheme is a small language as well, and it is worlds better for teach abstract concepts. You can write far more elegant and compact implementations of data structures in Scheme than you can write with C.
As for preferring one data structure over another, C does that as well: arrays are the only data structure with first-class support.
- erichocean 13y agoScheme is a small language as well, and it is worlds better for teach abstract concepts. I've heard this claim many, many times, but for me, I find Scheme (and Haskell, for that matter) impossible to work with. I love what Scheme and Haskell do in theory, but in practice, I find them unusable for those things. With Scheme and Haskell, I find I'm always trying to figure out how I should make the compiler happy, vs. taking an abstract concept that I understand well and just implementing it, which is something I find easy to do with C. But I also suck at math, and my assumption is that for people who don't suck at math, Haskell and Scheme and all the others are probably easier, and that makes sense to me.
- smorrow 13y agoFunctions don't see arrays, functions see pointers, even if you passed an array. The sizeof a passed array is the sizeof a pointer. So they're not first class.