this post was submitted on 20 Dec 2023
487 points (100.0% liked)
196
17057 readers
766 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
Other rules
Behavior rules:
- No bigotry (transphobia, racism, etc…)
- No genocide denial
- No support for authoritarian behaviour (incl. Tankies)
- No namecalling
- Accounts from lemmygrad.ml, threads.net, or hexbear.net are held to higher standards
- Other things seen as cleary bad
Posting rules:
- No AI generated content (DALL-E etc…)
- No advertisements
- No gore / violence
- Mutual aid posts require verification from the mods first
NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.
If you have any questions, feel free to contact us on our matrix channel or email.
Other 196's:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
So you're saying I can use the semicolon in a different context other than ending an instruction in my Java code ?
Yes, you can end a statement in C or C++ as well.
And, dare I say it, Javascript.
What the fuck? There are children here. Don't say shit like that.
or begin a comment in Inno
What about Applesoft BASIC? Because I was pretty good at that on my Apple II, but I don't think there were semicolons.
Also, I don't know how to code, so I don't know what semicolons are for in code.
BASIC statements end on new lines. The language does use a semicolon at the end of PRINT statements in order to omit printing a newline character at the end, but I believe that's the only use. (It's been about 20 years since I've done anything in BASIC.)
The meaning of a semicolon depends completely on the language. C and C-like languages (like Java and Rust) tend to use them to delimit the end of a statement.
You can ;)
You can also use them to split lists where the items have commas in them. Like if you're saying you're holding a party and you invited A, whom you dislike but would feel bad to exclude; B, who you've not seen in years and really want to catch up with; and C, who is also going to be there.