Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
계산기 구현 어렵네요.. 코틀린 문법도 어색하다보니 시간이 생각보다 오래 걸려서 객체지향과는 거리가 조금 있는 코드로 작성된 것 같습니다 ㅠㅠ
조금 더 개선할 부분이 너무 많아서 당장의 리뷰를 요청드리기 보다 코드 수정 이후에 리뷰 요청 드리겠습니다.
당장은 돌아가는 코드에 집중해서 정말 코드가 돌아가기만 합니다 ㅎㅎ 구현하면서 제가 그래도 도메인의 역할과 책임을 나누려고 노력했습니다. 해당 내용은 아래에 정리했으니 코드를 보실 때 참고하시면 됩니다!
요구사항 분석
비즈니스 로직
연산
조회
도메인 별 역할
Expression
Operator
그 외 객체의 역할