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

Use Result to represent success or fail. #34

Closed
efenniht opened this issue Aug 20, 2019 · 1 comment
Closed

Use Result to represent success or fail. #34

efenniht opened this issue Aug 20, 2019 · 1 comment

Comments

@efenniht
Copy link
Collaborator

성공 또는 실패를 나타내기 위해서 지금은 다음과 같이 하고 있습니다.

  • i64 와 같이 에러 코드를 사용 (api.rs 에서 FFI를 하는 함수들)
  • bool 로 성공과 실패 나타냄
  • Option<()> 으로, Some(()) 이면 성공, None(())이면 실패 (mm.rs 에서 많이 사용)

이런 류의 데이터는 Result를 이용해서 나타냅시다! 바꾸면서, ? operator를 적극적으로 사용하도록 합시다.

@efenniht
Copy link
Collaborator Author

#39 에서 Interrupts 내부의 메서드에 대해서 수정됨.

efenniht pushed a commit to efenniht/hafnium-verification that referenced this issue Nov 13, 2019
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