Expand description
Utilities for evaluating whether eagerly evaluated expressions can be made lazy and vice versa.
Things to consider:
- does the expression have side-effects?
- is the expression computationally expensive?
See lints:
- unnecessary-lazy-evaluations
- or-fun-call
- option-if-let-else
Enumsยง
- Eagerness
Suggestion ๐
Functionsยง
- expr_
eagerness ๐ - fn_
eagerness ๐Determine the eagerness of the given function call. - Whether the given expression should be changed to evaluate eagerly
- Whether the given expression should be changed to evaluate lazily