M
M
Marik Zukor2016-02-05 13:44:35
Programming
Marik Zukor, 2016-02-05 13:44:35

How do you translate "instruction" into English?

https://www.youtube.com/watch?v=5JEkiHHUOFs&index=...
this guy says that an instruction is a statement (there is no hint of this in the translator, it is translated as an operator). The translator says that an instruction is an instruction. Well, why confuse people already at the first stage of training? what is right, what is wrong is unclear. Explain what is the problem

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
sim3x, 2016-02-05
@BeriaFantom

Philosophically, any statement or expression is an instruction to the virtual machine
www.2ality.com/2012/09/expressions-vs-statements.html Blocher hacked
the phrase from here, apparently www.w3schools.com/js/js_statements.asp

In HTML, JavaScript statements are "instructions" to be "executed" by the web browser.

F
follow39, 2016-02-05
@follow39

Because not all authors of videos on YouTube are competent.

S
sta-s2z, 2016-02-05
@sta-s2z

it doesn't matter, the main thing is that the meaning is clear
that what he calls "instructions" are really statements, I would translate this as "expressions", expressions, in turn, consist of operators, variables / constants, functions, etc.
The word instruction is rather more applicable to low-level languages ​​such as assembler - processor instructions.

U
uvelichitel, 2016-02-05
@uvelichitel

Philosophically
At least that's what they teach in classical textbooks.

A
abcd0x00, 2016-02-05
@abcd0x00

statement - operator
operator - operation (+, -, *, /)
expression - expression
assertion - statement
condition - condition
instruction - instruction
operation - operation (action)

while (cond) {
    f1();
    f2(); f3();
}

The while statement with the cond condition contains three statements in its body, each of which is a function call.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question