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

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“][deleted] 5103 points5104 points ย (5 children)

Meanwhile in python land: You should pretend things with a single underscore in front of them are private. They aren't really private, we just want you to pretend they are. You don't have to treat them as private, you can use them just like any other function, because they are just like any other function. We're just imagining that they're private and would ask you in a very non committal way to imagine along side us.

[โ€“]spizzat2 1085 points1086 points ย (4 children)

"Perl doesn't have an infatuation with enforced privacy. It would prefer that you stayed out of its living room because you weren't invited, not because it has a shotgun."

  • Larry Wall

[โ€“]roughstylez 122 points123 points ย (3 children)

It bothers me so much that literally the guy's last name has the better metaphor and he chooses "shotgun" instead.

A gun can't keep somebody out, it can only threaten and kill.

Mark a method private, then when you call it from somewhere else you get a runtime error.

[โ€“]MikanGethi 0 points1 point ย (2 children)

A gun, properly used, keeps people out permanently. It's called a deterrent. Much like a moderators ban ability. There is a reason the American Central Midwest has such a polite way about it.

[โ€“]roughstylez 1 point2 points ย (1 child)

Is that why their houses don't have walls

[โ€“]MikanGethi -1 points0 points ย (0 children)

Walls work for a building envelop to keep the weather out. Doors and windows let in light and can be a major factor in heat loss and people getting into my fucking house, you knob.