Compile-time calculation: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
imported>Bkranjc
(→‎{{header|Scala}}: Add Scala 3 version with proper CTE)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 1,731:
 
Not that it makes much difference in practice as the compiler which is written in C is so quick (at least with scripts of moderate length and on modern hardware) that the compile and runtime stages are indistinguishable to the user.
<syntaxhighlight lang="ecmascriptwren">var factorial10 = 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2
 
System.print(factorial10)</syntaxhighlight>
9,482

edits