Skip to content

Implement custom type and custom overflow #2

@maximveksler

Description

@maximveksler

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. “)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions