Talk:Petit Computer 3/@comment-15296152-20140618072337/@comment-15296152-20140620182256

Not so, they could also be useful in subroutines (GOSUB).

The thing with GOSUB is that it doesn't follow the act of encapsulation/scope like functions do. It does exactly what GOTO does, except it also throws the last code position onto the stack, and retrieves that upon RETURN. GOSUB also doesn't have parameters, which for functions, copies the values (or references them) from one set of variables into another set that become local.

If they were to attempt to make GOSUB utilize local variables, have parameters, etc, then it wouldn't be GOSUB anymore. We're not even sure how they plan to use GOTO/GOSUB alongside functions, but from what I've seen with other languages, they'll restrict them to be used completely outside of functions and completely within. No crossing the function scope (meaning you can't enter a function with them, nor can you exit a function with them either).