You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining objects it should be allowed to reference the same object and when defining functions the function body should be able to reference the same function.
def Object(a as Object)
def function(a as Number) = { if (a < 10) function(a + 1) }
However the last option could lead to infinite loops:
def function() = function()
So we either allow everything, invent some recursion-discovery mechanism or simple disallow loops in functions for now..
The text was updated successfully, but these errors were encountered:
When defining objects it should be allowed to reference the same object and when defining functions the function body should be able to reference the same function.
def Object(a as Object)
def function(a as Number) = { if (a < 10) function(a + 1) }
However the last option could lead to infinite loops:
def function() = function()
So we either allow everything, invent some recursion-discovery mechanism or simple disallow loops in functions for now..
The text was updated successfully, but these errors were encountered: