Quantcast
Channel: User CPlus - Programming Language Design and Implementation Stack Exchange
Viewing all articles
Browse latest Browse all 65

How would I describe an expression seperately from a statement?

$
0
0

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 expressions but do not really resolve to a value.

A fragment of code that performs an action.

Includes statements too.

An assignment or function call or literal value or variable.

An ostensibly exhaustive list is a cop-out.

How could I best define an expression separately from a statement?

Note: The top-voted answer here permits such questions.


Viewing all articles
Browse latest Browse all 65

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>