You can use anything that doesn’t start with a digit or punctuation as a variable name (underscore beginning also allowed) unless it’s a keyword.
- 0 Posts
- 7 Comments
ryedaft@sh.itjust.worksto No Stupid Questions@lemmy.world•My girlfriend is keeping me a secret from her family. Am I stupid for feeling upset about this?English101·4 days agoIs she the oldest child?
And maybe she is scared that her family will kick her out. Having to do school without a family network can be very hard. Common advice for gay teens with homophobic parents is to wait with coming out until you have moved out.
And yes, you love her and you’ll support her but then she will be very dependent on you and your relationship will become lopsided. You don’t want that. You want her to be with you because she loves you. So please be patient with the person you love.
ryedaft@sh.itjust.worksto Ask Lemmy@lemmy.world•If you were the CEO of a small game development company would company field trips be a good thing?English4·4 days agoNo fucking surprises. Work should be the least surprising thing ever. “Surprise, we’re going to have a meeting just the two of us. No agenda”. Surprise, you thought you would close the last tickets today but now I am taking you socialising.
ryedaft@sh.itjust.worksto No Stupid Questions@lemmy.world•how do i explain “it’s raining” to my boyfriend?English3·4 days agoIt’s like snow but wetter
ryedaft@sh.itjust.worksto No Stupid Questions@lemmy.world•My mom tells me I should cut dad off for cheating on her, am I a bad person for not wanting to do so?English83·6 days agoEh, you should support your family. The dad fell in love with someone else and now OPs parents are splitsville. It’s not fair to ask that OP cuts dad off but OP should try living 7/7 days with their parents if at all practically possible. OPs mom is going through so much grief right now - ignoring that is cruel.
ryedaft@sh.itjust.worksto Mildly Infuriating@lemmy.world•Forced to lie on a questionnaire (BioLife)English1·1 month agoAccording to Instagram
Underscore alone is a special variable name and I’m pretty sure anything assigned to it goes straight to garbage collection. Whereas
_myvariable
is typically use to indicate a “private” class variable or method (Python doesn’t have private so it’s just a convention).