-
Notifications
You must be signed in to change notification settings - Fork 9
Feature: Lazy Evaluation Ergonomics #46
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Focused Scope
Improve lazy-evaluation ergonomics and documentation around the existing
use()API.Proposed v1
use(async () => ...)withbuildAsync().use()resolves throughbuildAsync().build()fails clearly when async lazy values are used.lazyas an alias foruseif the naming improvement is worth the public API surface.Out of Scope
lazyIf()or conditional DSLs.Conditional values can already be expressed in the factory function through kwargs and hooks.