Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



> 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


It'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)


> 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?


Because I might, in some conceivable future, wish to implement that obscure data structure the doubly-linked list.


Shrug. And?

You can implement it and it's a bit harder in Rust https://rust-unofficial.github.io/too-many-lists/index.html


Are doubly-linked lists actually rarely implemented? I thought they were the back end of things like python lists, or something similar.


I was being sarcastic.


Does rust have an equivalent to the classic KR book?


Did Unix? Does C with lambdas has its K&R?

I don't see why it's some sort of requirement.


After K&R 2nd Ed. (ANSI C) and Modern C (C99) you can do a lot.


Someone 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.


> 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/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: