Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: @MemberwiseIntializer 매크로 구현 #20

Open
1 task
rlarjsdn3 opened this issue Jun 7, 2024 · 0 comments
Open
1 task

feat: @MemberwiseIntializer 매크로 구현 #20

rlarjsdn3 opened this issue Jun 7, 2024 · 0 comments

Comments

@rlarjsdn3
Copy link
Collaborator

rlarjsdn3 commented Jun 7, 2024

🛠️ 작업 내용

  • @MemberwiseIntializer 매크로 구현
@MemberwiseIntializer
public struct MemberEntity {
    var name: String
    @Init(.ignored) var age: Int = 10
    @Init("day_of_birth") var dayOfBirth: String  
    
    // Begin expansion of "@MemberwiseIntializer"
    public init(name: String, day_of_birth: String) { 
        self.name = name
        self.dayOfBirth = day_of_birth
    }
    // End expansion of "@MemberwiseIntializer"
}
  • 적용 타입의 접근 제어자에 유의

📄 기타

  • 주석화된 문서 작성하기
  • XCTest 케이스 작성하기
@rlarjsdn3 rlarjsdn3 added 문서 Improvements or additions to documentation 기능 New feature or request 😆경미 😗도현 and removed 😆경미 labels Jun 7, 2024
@rlarjsdn3 rlarjsdn3 added 😆경미 and removed 😗도현 문서 Improvements or additions to documentation 기능 New feature or request 😆경미 labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant