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

Swift-ier Code #2

Closed
wants to merge 4 commits into from
Closed

Swift-ier Code #2

wants to merge 4 commits into from

Conversation

shnhrrsn
Copy link
Contributor

  • Now taking advantage of Swift 2 features like guard
  • Removed most internal implicit optionals as they were prone to crashes
  • Removed all external implicit optionals since XMLNullElement was already taking care of that
  • Reworked init’s to drop the need for initXMLParser
  • Removed redundant private/public properties where possible
  • Restored description overrides
  • Minor performance improvement by making the NSRegularExpression object a class constant instead of creating everytime parser:foundCharacters: is called

* Now taking advantage of Swift 2 features like guard
* Removed most internal implicit optionals as they were prone to crashes
* Removed all external implicit optionals since XMLNullElement was already taking care of that
* Reworked init’s to drop the need for initXMLParser
* Removed redundant private/public properties where possible
* Restored description overrides
* Minor performance improvement by making the NSRegularExpression object a class constant instead of creating everytime parser:foundCharacters: is called
@shnhrrsn
Copy link
Contributor Author

This has now been updated for Swift 3

@lobodart lobodart closed this May 2, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants