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

Everything Is References

Name: Anonymous 2010-08-20 16:29

Is there a language in which variables, function arguments, etc, are always references by default?

For example:

int x = 5;
int y = x;
y++;  // x and y are both 6


If you really did want a copy of something, you'd have to use a keyword:

int x = 5;
int y = copy(x);


And pass-by-value would also have to be done explicitly:

void func(int z)
{
   int w = copy(z); // now w is effectively "local"
}


It would force programmers to at least be aware of the fact that they're making a copy.

Name: Anonymous 2010-08-24 15:05

>>80
what percentage of Winamp code do you think is specifically for MP3 decoding? 2%? 1%?

It's 100% of the code that I actually care about, and 100% of the reason I download and install Winamp, and 100% of the reason that Winamp was created.

I totally get you now...  You're just into writing fluff.  I am the guy that writes that 1% that you apparently don't care about -- the code that actually does work, while you slap together ENTERPRISE CLASS XML SKINNABLE INTERFACES.  Here's the thing:  People don't want that shit.  It's just the bloat that people are willing to put up with because they want the actual application hidden underneath all those layers of visual masturbation.

Your numbers are completely skewed, but you're right, that worthless shit doesn't need to be written in C.  In fact, it doesn't need to be written at all.

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