Live data from Hacker News

Rust Language Cheat Sheet

cheats.rs

1–10 of 65 posts

Re: Rust Language Cheat Sheet

#5

If you had an equivalent Cheat Sheet for other programming languages (no programs or opinions), which language would look best?

Smalltalk. Or Forth.

This cheatsheet is syntactic, both have very little syntax. You can famously exercise all of Smalltalk's syntax on half a postcard: https://miro.medium.com/max/1000/1*Aa0AEoUgjZov8yrgdplsIg.pn...

(the example doesn't feature primitives calls, not because they don't fit — a primitive call would be — but because their use case is extremely specific to implementing a system).

Re: Rust Language Cheat Sheet

#6
The explanation of lifetimes linked here is really great - I think this goes a little further than just a cheat sheet. Seems to be more like excellent Clif notes.

Re: Rust Language Cheat Sheet

#9
post #5

If you had an equivalent Cheat Sheet for other programming languages (no programs or opinions), which language would look best?

Smalltalk. Or Forth. This cheatsheet is syntactic, both have very little syntax. You can famously exercise all of Smalltalk's syntax on half a postcard: https://miro.medium.com/max/1000/1*Aa0AEoUgjZov8yrgdplsIg.pn... (the example doesn't feature primitives calls, not because they don't fit — a primitive call would be — but because their use case is extremely specific to implementing a system).

Scheme has to fall somewhere between Smalltalk and Forth for quantity of syntax too. To me, these are the prettiest languages.

Re: Rust Language Cheat Sheet

#10

Ralf Biedert, thanks so much for this! I've been learning Rust via the Rust Book for the past few months and this will help so, so much - fantastic work.

I know everyone says how good Rust's documentation is but I tried learning Rust with The Rust Book and found it frustrating: too long and wordy on the easy bits and without useful insight on the hard bits. I ended up buying Programming Rust by Jim Blandy [0] on a recommendation from HN comments and found it must easier to learn from. I'm already familiar with several other languages, which that book assumes, so your milage may vary.

[0] https://www.amazon.co.uk/Programming-Rust-Jim-Blandy/dp/1491...

Post reply on HN