Charles Cooper

Results 415 comments of Charles Cooper

i like the use of ellipses - also to mark the body of the function as unimplemented (which can be a syntactic difference between `.vyi` and `.vy` files)

> I would like to also suggest a `clear` method (or whatever you think it should be called). What would the semantics of this method be?

You can set the length of a dynamic array to zero by either using an empty list literal or using the special empty function ```vyper my_array: DynArray[uint256, 7] = [...

meeting notes: `_abi_encode` must have at least one positional arg. we should document this, and note in the docs that if you just want the 4-byte selector, you can use...

the issue an unhandled error when we try to assign to function arguments (which are supposed to be immutable)

related: https://github.com/vyperlang/vyper/issues/2145#issuecomment-965684394

smaller repro: ```python struct Foo: x: uint256 @external def foo(f: Foo): f.x *= 2 ```

for internal functions, code actually gets generated, it's not just a false positive from the type checker. ex the following code: ```vyper struct Foo: x: uint256 @internal def foo(f: Foo):...

Examples: #10108 #10917 #10897 #10512