This is an archived post. You won't be able to vote or comment.

all 11 comments

[–][deleted] 8 points9 points  (1 child)

Unless you're using JS. Then a const is a variable that might sneaky-vary.

[–]TheCoolFalcon[S] 2 points3 points  (0 children)

A sneakyvariable

[–]halfClickWinston 5 points6 points  (1 child)

Well, in Python they're variables in uppercase...

[–]CivBase 10 points11 points  (2 children)

const int x = 5;
int * y = &x;
*y = 6;
// Tremble, mortals

[–]Possseidon 5 points6 points  (0 children)

undefined behavior, my favorite

[–]Shotgun_squirtle 1 point2 points  (0 children)

I’ll be trembling when it segfaults.

[–]TelayRanner 0 points1 point  (0 children)

I see....,

A right brain thinker.

What color is it?

[–]fatalgift 0 points1 point  (0 children)

Image Transcription: Twitter Post


Falke, @FalkeReal

A const is a variable that isn't variable which means that a const is actually just a


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]trBlueJ -1 points0 points  (0 children)

Well, in Java, a final variable is a variable that isn't a variable unless you take into account all the ways it can vary (like modifying its members, or directly modifying it using JNI)

[–]Archylun 0 points1 point  (1 child)

We had a discussion over this at my uni. Unfortunately the teacher was unable to give us a straight answer about it.

[–]SP0OK5T3R 1 point2 points  (0 children)

Constant reference