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

rfc: inplace operators and mutations #15

Open
pmp-p opened this issue Oct 7, 2020 · 0 comments
Open

rfc: inplace operators and mutations #15

pmp-p opened this issue Oct 7, 2020 · 0 comments

Comments

@pmp-p
Copy link
Owner

pmp-p commented Oct 7, 2020

inplace operators should NOT apply to immutable (tuple)
if t = (1,)
then t+=(2,)
should not be allowed and written
t = t + (2,) instead

other inplace operations should use that scheme:
t = type(t)( iop( t , V ) )
but ideally V should be casted to type t before iop.

not doing so probably prevent easy/efficient compilation of python code to C or wasm and add overhead to FFI stacks.

@pmp-p pmp-p mentioned this issue Oct 23, 2020
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