-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statement is a same word for « Instruction » or « Declaration » ? #754
Comments
@posva may have some thoughts here. |
Thanks for the ping @chrisvfritz
Yes, it should be expression instead as above. @chrisvfritz WDYT?
No, it's a statement, as you said before. Declaration could be the french equivalent for it, though |
Thx @posva. So a will keep my initial comprehension and we will translated that keeping this source in mind :
I will also to be more attentive when I see a « false » usage of « statement », and also in a well referenced page (http://www.w3schools.com/js/js_statements.asp) I'm glad to know exactly the difference with no doubts thanks to you. |
Thanks for pointing it out. I submitted a PR to fix that very specific line |
@haeresis Hey, actually |
So we have: Instruction Statement > if (test) { true; } else { false; }
<· undefined > var test = (if (test) { true; } else { false; })
<· Uncaught SyntaxError: Unexpected token if Expression > void 0
<· undefined > var test = void 0
<· undefined So to resume: my comprehension is ok, and the explaination of @posva too. But in the specific case of In the document and Understood. So all is ok for me. Thx a lot. |
I work on French translation of Vue.
All was clear from
guide/syntax.md
but withevent.md
I'm not really sure to have well understand.This is my current comprehension
In the document
syntax.md
at line 74, we can readto describe this
{{ var a = 1 }}
For Linguee,
Statement
meansDeclaration
: http://www.linguee.fr/francais-anglais/search?source=anglais&query=statementFor Google Translate,
Statement
meansDeclaration
: https://translate.google.fr/?um=1&ie=UTF-8&hl=fr&client=tw-ob#en/fr/statementSo I understant this :
Instruction
isInstruction
Statement
isDeclaration
Expression
isExpression
So, I can describe this :
like this :
and that means
These lines are one « Expressions » and work
and same for
num === 21
,bool = true
andnum = 0
That means also
These lines are not only « expressions » but « declaration » and « controle flow » and don't work
All is clear for me
BUT
Maybe I'm not really understand Statement word ?
In the document
guide/events.md
at line 107, we can readto describe this
<button v-on:click="say('hi')">Say hi</button>
and at line 144 in the same document we can read
to describe this
<button v-on:click="warn('Form cannot be submitted yet.', $event)">Submit</button>
So if I refer to my previous explaination/comprehension,
say('hi')
andwarn('Form cannot be submitted yet.', $event)
are not statement but expression**So I think. Maybe the correct line are
or
Because I'm not sure there is an error in two different place I think « maybe statement means instruction and not declaration »
So I ask to Google
statement javascript
and I see in first result this (http://www.w3schools.com/js/js_statements.asp) :and I say « No ! It's not a statement, it's an instruction that only contain an « expression » (an affectation), not a « declaration (statement) ».
But where is the thuth ?
So if I decide to say « ok, statement is not declaration, but instruction in general »
In this case the
should be
The text was updated successfully, but these errors were encountered: