Write idiomatic Rust with these actionable tips and tricks. I reviewed a calculator (parser interpreter) written in Rust and found a few ways to make it better and faster.
0:00 wrap(unwrap())
0:13 if {true} else {false}
0:19 String → str slice
0:34 if let ... && ...:
1:45 .copy() → ’static
2:06 HashSet[str] → bit set
3:03 compiler tests
4:00 how to split big functions
4:48 shorten error code
5:01 assert!
5:37 returning &mut
6:03 multi match
6:16 converting errors
7:20 code review final thoughts
PUBLICATION PERMISSIONS:
Original video was published with the Creative Commons Attribution license (reuse allowed). Link:
0 views
4
1
4 years ago 00:16:45 13
5 Tips for Writing Idiomatic Code in Golang - Part 2
3 years ago 00:07:43 0
Write Idiomatic Rust with These Tips and Tricks
8 years ago 00:27:53 7
Pascal Hertleif - Writing Idiomatic Libraries in Rust
3 years ago 00:14:18 6
5 Tips for Writing Idiomatic Code in Golang - Part 3
4 years ago 00:04:29 38
Speaking English - How to use idiomatic pairs
1 year ago 00:04:10 3
Idiomatic Phrases Quiz : can 100% PASS THIS QUIZ ? #3
1 year ago 00:09:57 0
Idiomatic Expressions in our Everyday Use:التعبيرات المُصْطَلَحيّة في استخد&
9 years ago 00:23:49 0
Writing readable code - Dmitry Pashkevich
8 years ago 00:05:49 36
Linting Your Bash Scripts with Shellcheck
9 years ago 01:13:17 60
10 Tips for Pythonic Code
5 years ago 00:40:18 21
Go (Golang) http RoundTripper Explained
7 years ago 00:34:58 10
[Golang] Rapid Web Development In Go (aka Intro Into Buffalo)
10 months ago 00:10:12 68
Riffage: Hard Rock - Virtual Instrument Walkthrough
5 years ago 00:05:42 47
7+ Vocabulary for Talking About Free Time
4 years ago 00:12:54 79
INTERMEDIATE ENGLISH STORY ❄️The Snow Day ⛄ B1 - B2 | Level 4 - 5 | BRITISH ENGLISH WITH SUBTITLES
1 year ago 00:11:33 0
English Idioms for Everyday Use: التعابير الإنجليزية للاستخدام اليو