합성과 명령형 method 선택
pipeline이 의미를 드러내는 범위에서만 함수 합성을 사용한다.
| 상황 | 선택 | 판단 |
|---|---|---|
| 짧은 값 변환 | Function chain | type 흐름 |
| 조건 조합 | Predicate and·or | short-circuit |
| resource·transaction | 명령형 block | lifecycle |
| 복잡한 multi-step lambda | 이름 있는 method | debug·응집 |
핵심: 지연 Supplier는 실제 비용 회피가 있을 때만 도입한다.