-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
608: Recommend maybe() rather than EntitiesRes + get r=azriel91 a=Tomcc I discovered `maybe()` by chance because this tutorial recommends doing things another way, but I much prefer `maybe()`. It's shorter, doesn't require `EntitiesRes`, and I assume it may be faster because it doesn't have to do a bunch of random lookups with `get()`. So I tried to edit the documentation to include it, let me know if it sucks :) It would be nice to explain `mask()` and `restrict()` in this section as well because those are really handy with `FlaggedStorage`s. ## Checklist * [x] I've updated the book to reflect my changes Co-authored-by: Tommaso Checchi <[email protected]> Co-authored-by: Azriel Hoh <[email protected]>
- Loading branch information
Showing
1 changed file
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters