Skip to content

Conversation

@hemil0102
Copy link
Contributor

2장은 1장 대비 이해 안되는 부분이 곳곳에 있었는데, 평소에 잘 사용하지 않는 Any, Nothing(Never)같은 타입에 대해 알아볼 수 있어서 좋았습니다. 또한 추상메서드가 구조에 의한 다형성을 고려해서 나온 개념과 이유를 알게 되어 좋았습니다.
함수와 서브타입은 말로만 너무 장황하게 설명해서 그려가면서 이해를 해야했는데, 책이 좀 불친절했던 것 같고... 매개변수 쪽은 아직 이해를 못한 상태입니다.

@github-actions
Copy link

우측에 있는 Projects, Milestone, Development를 확인 후 할당 해주세요~! 🙇

@hemil0102 hemil0102 changed the title 타입으로 견고하게 다형성으로 유연하게 2주차 - 하업서 타입으로 견고하게 다형성으로 유연하게 2주차 - Harry Jan 23, 2025
@hemil0102 hemil0102 added 2025 타입으로 견고하게 다형성으로 유연하게 탄탄한 개발을 위한 씨줄과 날줄 labels Jan 23, 2025
Copy link
Member

@jongfeel jongfeel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@jongfeel jongfeel Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2장의 여러 분들의 핵심 논의 사항들이 TypeScript를 경험해 보지 못해서 겪는 새로운 혹은 빨리 이해할 수 없는 문법인 것 같습니다.
차라리 TypeScript를 실무에 몇 년간 써본 사람을 찾고 소감을 물어보는게 더 빠를 것 같다는 느낌입니다.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 C#을 쓰고 있고 언어 별 예제의 C#은 object 입니다.
최대 타입을 쓰는 이유는 그 메서드가 정의되어 있기 때문인데 다음과 같습니다.
Java와 C#은 태생이 같아서 쓰는 메서드가 같습니다.

print문 같은 경우는 ToString() 메서드를 호출해서 쓰므로 Any에 대한 설명에 매우 적합한 메소드이고
그 외에 GetType()은 최소 타입이 무엇인지 알아내는 메소드
또 Equals()의 경우는 GetHashCode()와 함께 객체 인스턴스가 같은지 식별하는 작업으로
대표적인 기능이기도 합니다.

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

일급 함수를 알고 계시면 표현 방식에 대한 것만 이해하면 됩니다.

swift도 -> 표현을 쓰므로 다른 언어와 크게 다르지는 않습니다.

@hemil0102 hemil0102 merged commit eca4fbc into main Mar 7, 2025
4 checks passed
@hemil0102 hemil0102 deleted the RobustWithTypeFlexibleWithPolymorphism-2주차 branch March 7, 2025 13:07
@github-project-automation github-project-automation bot moved this from In review to Done in 2025 Academic Conference Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2025 타입으로 견고하게 다형성으로 유연하게 탄탄한 개발을 위한 씨줄과 날줄

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

<타입으로 견고하게 다형성으로 유연하게> 2장 서브타입에 의한 다형성, 총 79페이지, 2025-01-24

7 participants