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

Implement custom type and custom overflow #2

Open
maximveksler opened this issue May 8, 2015 · 0 comments
Open

Implement custom type and custom overflow #2

maximveksler opened this issue May 8, 2015 · 0 comments

Comments

@maximveksler
Copy link
Owner

It could be super cool if we’d implemented an overflow / override the << operator for bit so that when we reach 0b00001 it would overflow to 0b10000 automatically. This would simplify and beautify the code.

See here https://github.com/maximveksler/GeohashKit/blob/master/GeohashKit/Geohash.swift#L86

Assuming swift supports something like this now, or in the future. “)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant