Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
amedvednikov
on Feb 7, 2019
|
parent
|
context
|
favorite
| on:
About V, the language Volt is written in
I'm planning to optimize this so that no copies are created.
rafaelvasco
on Feb 7, 2019
|
next
[–]
Yeah , but i meant that a = multiply_by_2(a) still looks like it is copying things even if it isn't. Let it be immutable by default and mutable with a keyword.
runeks
on Feb 7, 2019
|
prev
[–]
For what it’s worth,
if
you can optimize away the immutability (copying), I’d much prefer expressing myself this way, rather than using mutability.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: