Commit Graph

19 Commits

Author SHA1 Message Date
CasualX
69de2351f2 Fix a few nits with the replace idiom.
Change the match guard to be part of the pattern.

Change `"".to_string()` to a more idiomatic `String::new()` to create a new `String` without memory allocation.
2016-10-09 15:35:57 +02:00
Andre Bogus
547ff18605 Adressed comments 2016-10-08 19:14:05 +02:00
Andre Bogus
31b282ad9f new idiom: mem::replace 2016-10-08 08:51:31 +02:00
Nick Cameron
3d748b1adc Merge pull request #25 from lfairy/option-list
Add "Treating Option like a list"
2016-09-30 09:37:10 +13:00
Chris Wong
f3fe2d6f28 Iterating over an Option 2016-09-29 23:52:13 +13:00
Mikhail Trishchenkov
1bc8a36a2f Small title fix 2016-09-27 16:01:35 +13:00
Mikhail Trishchenkov
67685cddf0 Rename idiom 2016-09-27 16:01:35 +13:00
Mikhail Trishchenkov
9f85aad151 Fix review issues
Replace tabs with spaces, mention usage for borrowing, add disadvantage
(code indentation increase).
2016-09-27 16:01:35 +13:00
Mikhail Trishchenkov
72606ccfcb Clone to closure idiom 2016-09-27 16:01:35 +13:00
Nick Cameron
6ac851e718 Add the extensibility by privacy pattern
(And change the concatenation pattern to say something different about perf)
2015-12-09 10:59:30 +13:00
Nick Cameron
c2cf5e6c1a Deref polymorphism anti-pattern 2015-11-01 21:31:24 -05:00
Nick Cameron
a06ca32e70 Merge pull request #15 from liigo/patch-3
improve comment
2015-10-28 09:13:30 -04:00
liigo
d4fa321a38 improve comment 2015-10-28 09:09:57 +08:00
liigo
ea3aa4d310 fix compile error in comment 2015-10-28 09:04:38 +08:00
Steve Gury
5bc7f3a99c Fix a minor typo s/he/the/ 2015-10-23 09:54:08 -07:00
Nick Cameron
325b642a01 Added a few idioms and patterns - some are still WIP 2015-10-23 09:53:16 +13:00
Nick Cameron
cf8479320a Add missing file for concatenating strings 2015-10-20 09:45:11 +13:00
Nick Cameron
65f12dcaab link ctor -> builder 2015-10-15 15:12:37 +13:00
Nick Cameron
248baabc14 Add the constructor idiom. 2015-08-31 16:24:54 +12:00