File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,14 @@ statements and expressions (instead of the linear list of instructions most
22
22
assembly languages have).
23
23
24
24
There is no requirement to use JavaScript syntax; this format is not intended to
25
- be evaluated or translated directly into JavaScript.
25
+ be evaluated or translated directly into JavaScript. There may also be
26
+ substantive reasons to use notation that is different than JavaScript (for
27
+ example, WebAssembly has a 32-bit integer type, and it should be represented
28
+ in the text format, since that is the natural thing to do for WebAssembly,
29
+ regardless of JavaScript not having such a type). On the other hand,
30
+ when there are no substantive reasons and the options are basically
31
+ bikeshedding, then it does make sense for the text format to match existing
32
+ conventions on the Web (for example, curly braces, as in JavaScript and CSS).
26
33
27
34
The text format isn't uniquely representable. Multiple textual files can assemble
28
35
to the same binary file, for example whitespace isn't relevant and memory initialization
You can’t perform that action at this time.
0 commit comments