3 ms·
Imagine using a language in a command-line setting. Each statement prints a value, but it would be rare to see something like `expr' be a mnemonic for that valu
by xigency 11y ago
Imagine using a language in a command-line setting. Each statement prints a value, but it would be rare to see something like `expr' be a mnemonic for that value.
I only bring it up because I'm in the process of writing an interpreter and I was surprised to see values printed at the end of for-loops, because assigning the last value to the iterator counts as a statement/expression.
Fair points.