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

bits support #1

Open
CMCDragonkai opened this issue Jun 27, 2014 · 6 comments
Open

bits support #1

CMCDragonkai opened this issue Jun 27, 2014 · 6 comments

Comments

@CMCDragonkai
Copy link

What about supporting bits?

@gabrielelana
Copy link
Owner

What kind of support do you would like for bits? Have you any API proposal?

@CMCDragonkai
Copy link
Author

Same kind of conversion apis.

@Cysioland
Copy link
Contributor

@gabrielelana Maybe he meant using bits as just another unit. Example:

<?php
echo ByteUnits\Binary::bytes(1)->format('b'); // returns 8b

But that would break the principle of case-insensitivity.

@gabrielelana
Copy link
Owner

@Cysioland I see, well... nice 😄

@Cysioland
Copy link
Contributor

@gabrielelana Do you have any idea, how to resolve that case insensitivity problem? Or we just say: "Screw it, bits are special case"?

@gabrielelana
Copy link
Owner

@Cysioland "B" for byte and "b" for bit, I don't have any problem with that, "B" and "b" are two different symbols so they could mean two different things, Case insensitivity is an abomination 😄

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

3 participants