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

Explore the option to replace cast functions (e.g byte, short, etc.) in Android with other alternatives #17

Closed
slavchev opened this issue Feb 11, 2015 · 0 comments
Labels

Comments

@slavchev
Copy link

Currently we exposed global numeric cast function that makes sense for Android platform only.

Example:
x.f(byte(5));

Alternatives:

  1. x.f(__byte(5)); // use double underscore
  2. x.f(Number.byte(5)); // attach cast functions to Number instead of the global object
  3. x.f(SomeSpecificTNSObject.byte(5)); //attach cast functions to SomeSpecificTNSObject instead of the global object
  4. ... // add any other viable alternative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant