Skip to main content

Questions tagged [statements]

For questions relating to statements, a small unit of code that expresses a certain action, in programming languages.

0 votes
2 answers
1k views

In most C-like languages, a call such as printf("%d", x) is followed by two parentheses; and I see that a statement such as ...
user avatar
9 votes
6 answers
4k views

Would it be safe to introduce the freeze statement for freezing a mutable object into an immutable object? Such statement would mix well into dynamically-typed ...
Dannyu NDos's user avatar
  • 1,485
6 votes
5 answers
592 views

This is a difficult question to get across because I don't think there is an established term for what I'm asking about. In the title I've called it "ways" of executing statements, but I ...
kaya3's user avatar
  • 22.4k
9 votes
3 answers
463 views

Some languages distinguish expressions from statements so that something like int x = 2; foo((x += 2)); is invalid. Other languages don't, so that a similar ...
Aman Grewal's user avatar
4 votes
6 answers
482 views

I have thought about how I could specify an expression separate from a statement. A fragment of code that resolves to a value. But void expressions are still ...
CPlus's user avatar
  • 10.5k