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

Make more (Error as return) throw-able problems for swift 2 #60

Closed
masters3d opened this issue Sep 10, 2015 · 1 comment
Closed

Make more (Error as return) throw-able problems for swift 2 #60

masters3d opened this issue Sep 10, 2015 · 1 comment

Comments

@masters3d
Copy link
Contributor

  • Replace Some optional returns for throws when it makes sense
  • Prefer encapsulation instead of free functions.
  • Protocol usage when it makes sense
  • Make extensions private
  • Guard or if lets instead of !
@masters3d masters3d added this to the Swift 2.0 milestone Sep 10, 2015
masters3d added a commit to masters3d/xswift that referenced this issue Sep 13, 2015
exercism#60

Computed variable can’t throw errors so the “answer” needs to be a
function.
@masters3d masters3d removed this from the Swift 2.0 milestone Sep 14, 2015
@masters3d masters3d changed the title Identity (Error as return) Throw-able problems for swift 2 Make more (Error as return) throw-able problems for swift 2 Jan 17, 2016
@masters3d
Copy link
Contributor Author

This could be moved to a standard swift error system
https://github.com/exercism/xswift/tree/master/exercises/grains

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