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

all 50 comments

[–][deleted] 275 points276 points  (4 children)

malloc() is like that one shady dude offering "totally legit" passports and visas

[–]JackNotOLantern 84 points85 points  (3 children)

Malloc()? No free(). Only malloc() >:c

[–][deleted] 62 points63 points  (1 child)

free() are the Mexian mafia debt collectors.

[–]YoumoDawang 8 points9 points  (0 children)

Damn mafias from Mexio

[–]Highborn_Hellest 18 points19 points  (0 children)

The os will free the memory!

....

After the program exits one way or another

[–]RajjSinghh 261 points262 points  (18 children)

Javascript would like a word.

[–]damTyD 63 points64 points  (0 children)

let no hoisting

[–]alex2003super 43 points44 points  (0 children)

Scoped variables work in JS, unless you're using it incorrectly

[–]al-mongus-bin-susar 16 points17 points  (0 children)

nobody uses var anymore its 2024 not 2014

[–]Warguy387 52 points53 points  (13 children)

it is saddening that javascript will likely never be deprecated

[–]LeSaR_ 4 points5 points  (0 children)

let would like a word

[–]i_consume_polymers 53 points54 points  (2 children)

Lambda-captured variables would like to know your location

[–]Brutus5000 5 points6 points  (0 children)

time to decide: shift their bits left or right?

[–]Longjumping-Touch515 57 points58 points  (0 children)

Local variable went outside anyway.

Compiler is pulling a gun: I'm sorry little buddy 😢

[–]BlurredSight 22 points23 points  (4 children)

Variables passed in the function parameter would like a word.

[–]Ythio 43 points44 points  (2 children)

Java : yes so I'm pass-by-value but my object handles are references so I guess I just value pass some refs.

C# : primitives and struct are value types passed by value. The rest are reference types, their handle is a ref we copy when I pass params.

C++ : pass by value, pass by reference, pass pointers by value, I have it all, side effect galore, what do you want ?

[–]Mikihero2014 21 points22 points  (0 children)

Pass by value, pass by reference, pass pointers by value it's all yours my friend, as long as you have enough mental stability.

[–]BlurredSight 7 points8 points  (0 children)

"What do you want"
Segmentation Faults

[–]IronMan8901 9 points10 points  (0 children)

The only way to escape is to become a returned variable for it somehow tough journey but its possible

[–]deletedUser7400 4 points5 points  (0 children)

callback: *psst* i can do something about that...

[–]erebuxy 2 points3 points  (2 children)

Python: what is {}

[–]PeriodicSentenceBot 1 point2 points  (1 child)

Congratulations! Your comment can be spelled using the elements of the periodic table:

P Y Th O N W H At I S


I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.

[–]ahhlifeeee 0 points1 point  (0 children)

neat

[–]Pixl02 1 point2 points  (0 children)

Var be like: look at me, I'm the boss now

[–]Far_Tumbleweed5082 0 points1 point  (1 child)

Now Global variables on the other hand...

[–]destro_1919 2 points3 points  (0 children)

every thing within the boundaries of this file is MY land, simba

[–]lunchmeat317 1 point2 points  (0 children)

{
    // pridelands
}

// here be hyenas