3 ms·
The advice I once got and since internalized is to reserve 'getX' to give a hint that something happens besides returning 'X', lazy initialization is a common u
by codr7 6y ago
The advice I once got and since internalized is to reserve 'getX' to give a hint that something happens besides returning 'X', lazy initialization is a common use case.
- 8note 6y agoI think of ensureX as getting x whilst initializing it if needed