From 0de22d7f60f9ebe9532b775ba68d12d8c164adab Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 30 May 2021 11:49:44 +0530 Subject: contributing: document `unsafeLazy` Signed-off-by: Harsh Shandilya --- CONTRIBUTING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9a71054a..b29e4cdd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,6 +23,10 @@ In most scenarios, the `app` directory is where you'd be contributing changes to We bundle a [`ignore-revs-file`](https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt) to ensure `git blame` is not affected by noisy changes. To make use of this, run `git config blame.ignoreRevsFile .git-blame-ignore-revs` from inside this repository. +## Source code conventions + +- Unless you're absolutely sure what you're doing, always prefer the `unsafeLazy` method over Kotlin's inbuilt `lazy` for lazily evaluated properties. + ## Building the project ### Building with Gradle -- cgit v1.2.3