4 ms·
A language like C but with lambdas isn't really C, not that that's a bad thing. I was a little surprised that a compiler was in scope given the amount of other
by humanrebar 5y ago
A language like C but with lambdas isn't really C, not that that's a bad thing.
I was a little surprised that a compiler was in scope given the amount of other work that needed to be written and (hopefully) supported, though I guess that's a different issue.
- Ygg2 5y ago> A language like C but with lambdas isn't really C, not that that's a bad thing. At that point, why not just use Rust?
- ianai 5y agoDoes rust have an equivalent to the classic KR book?
- Ygg2 5y agoDid Unix? Does C with lambdas has its K&R? I don't see why it's some sort of requirement.
- anthk 5y agoAfter K&R 2nd Ed. (ANSI C) and Modern C (C99) you can do a lot.
- ianai 5y agoSomeone somewhere once likened UNIX to the OS version of C to me, or something like that. There's also the various books on UNIX from those days. My question though was more about rust as a language. Does it have a golden standard introduction to it like C does. Not 'some sort of requirement', but genuine interest in a clear path to learn the language.
- Ygg2 5y ago> My question though was more about rust as a language. Does it have a golden standard introduction to it like C does. You'd have to be specific. If you are looking for simplicity, nothing will ever beat C, but just because a languague is simple doesn't mean it's easy to program. See Brainfuck. Generally Rust Book is considered a gold standard, but I rarely read them unless I am truly at a loss what next. https://doc.rust-lang.org/book/ https://doc.rust-lang.org/book/
- msla 5y agoBecause I might, in some conceivable future, wish to implement that obscure data structure the doubly-linked list.
- ianai 5y agoAre doubly-linked lists actually rarely implemented? I thought they were the back end of things like python lists, or something similar.
- msla 5y agoI was being sarcastic.
- Ygg2 5y agoShrug. And? You can implement it and it's a bit harder in Rust https://rust-unofficial.github.io/too-many-lists/index.html https://rust-unofficial.github.io/too-many-lists/index.html
- skissane 5y ago> A language like C but with lambdas isn't really C, not that that's a bad thing. The C standard working group is currently debating whether to add lambdas to the language: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2924.pdf http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2924.pdf
- bitshiffed 5y agoIt's not standard, but Blocks (w/ clang & compiler-rt) have been around in C for a while. https://en.wikipedia.org/wiki/Blocks_(C_language_extension) https://en.wikipedia.org/wiki/Blocks_(C_language_extension)