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

Remove stdlib.sol #168

Open
fare opened this issue Oct 1, 2019 · 0 comments
Open

Remove stdlib.sol #168

fare opened this issue Oct 1, 2019 · 0 comments

Comments

@fare
Copy link
Contributor

fare commented Oct 1, 2019

The functions in stdlib.sol are ultimately not needed:

  • We never need to convert things to bytes outside of computing a digest, and this doesn't require any function in stdlib.sol.
  • Conversion to bytes and digests is per type, anyway, and just uses abi.encode or in some cases abi.encodePacked, or a similar thing that we'd write if generated EVM code.
  • We never actually need to decode from bytes during normal operations, though we need the basic (compiler-generated) runtime to do it for us for initial contract invocation, and we might keep that first-class for reflection.
  • We can save on that file, and on having the compiler having to find it at its runtime.
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

1 participant