Skip to content

VIP: len return type should be uint256 #1979

@iamdefinitelyahuman

Description

@iamdefinitelyahuman

Simple Summary

The builtin len function should return uint256.

Motivation

It is impossible to have a negative length. As such, uint256 is the type I would expect to receive from this function.

Specification

len(b: bytes) → uint256

Backwards Compatibility

It's a small but breaking change.

Copyright

Copyright and related rights waived via CC0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions