Talk:Variable declaration reset: Difference between revisions
Content added Content deleted
(→Meaning of purpose: new section) |
Thundergnat (talk | contribs) m (→Meaning of purpose: comment) |
||
Line 14: | Line 14: | ||
Is there a language where a variable declaration inside the body of a loop does *not* reset the contents on every iteration? What would the alternative be like? --[[User:Spoon!|Spoon!]] ([[User talk:Spoon!|talk]]) 07:17, 21 June 2022 (UTC) |
Is there a language where a variable declaration inside the body of a loop does *not* reset the contents on every iteration? What would the alternative be like? --[[User:Spoon!|Spoon!]] ([[User talk:Spoon!|talk]]) 07:17, 21 June 2022 (UTC) |
||
:: <blockquote>Is there a language where a variable declaration inside the body of a loop does *not* reset the contents on every iteration?</blockquote> |
|||
:: Yes? |
|||
::<blockquote>What would the alternative be like?</blockquote> |
|||
:: The possible alternatives might be: |
|||
::* 1) It does reset every time. |
|||
::* 2) It doesn't reset every time. |
|||
:: or possibly... |
|||
::* 3) It does or doesn't reset depending on other factors. (see the Raku entry, for example) |
|||
::--[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 10:40, 21 June 2022 (UTC) |