Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Mutable vs Inmutable

Name: splicer 2011-06-07 13:41

Hi... newbee here

I'm learning perl and also a little of LUA.

LUA has inmutable strings and Perl mutable strings.

¿What are the advantages/disadvantages of mutability?

Name: Anonymous 2011-06-07 13:43

The advantage of a mutable string is that it's mutable.

The advantage of an immutable string is that it's immutable.

Name: Anonymous 2011-06-07 13:49

mailto:noko

Name: Anonymous 2011-06-07 13:56

>>2
Now let's wait for the idiot to give some long and off base explanation on mutable vs immutable strings.

Name: Anonymous 2011-06-07 13:56

ITS ALL BOUT THE CACEH LOCALITY OF THE L1 CACHE THAT MAKES UR COMPUTERS SPEED UP U SHUOLD USE IMNUTABLE STIRNGS BCUZ THEY HAV A BETTR ACEHC LOCALTIY BCUZ MUTABLE STRINGS  MAY GET MUTATED AND THAT MEANS U HAVE A CACHE MISS FOR EACH MUTATION YOU DO
DONT USE MTABLE STRINGS

Name: Anonymous 2011-06-07 14:06

Do you get that burning sensation when you think?

Name: Anonymous 2011-06-07 19:27

>>4
DAT FP

DAT CONCURRENCY

DAT ERLANG

>>5
DAT CZECH LOCALE

MTABLE
I approve.

Name: Anonymous 2011-06-07 20:35

reallocating and copying and hashing memory on every operation = performance amirite

Name: Anonymous 2011-06-07 21:10

>>8
I'm glad people like you only rarely implement VMs/compilers/interpreters.

Name: Anonymous 2011-06-07 21:18

oh noes now i am offended

Name: Anonymous 2011-06-07 23:35

>>10
No you're not. You're too ignorant for that.

Don't change these.
Name: Email:
Entire Thread Thread List