Allow to use recursion in Starlark #9163
Labels
not stale
Issues or PRs that are inactive but not considered stale
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
team-Starlark-Interpreter
Issues involving the Starlark interpreter used by Bazel
type: feature request
Description of the problem / feature request:
Allow to use recursion in Starlark. Instead of just detecting recursion maybe its better to limit Starlark stacksize.
Feature requests: what underlying problem are you trying to solve with this feature?
I trying to write my own .bzl files for building C++ code, but native functions is not well documented, because of that I'm just printing variables in my rules for exploration. But I've got an problem with writing generic function, which can dump object content in Starlark, because of lack of recursion.
My implementation of printing function for debug puproses:
my_rule.bzl:
BUILD:
With this code I've get an error:
What operating system are you running Bazel on?
Windows 10 x64
What's the output of
bazel info release
?release 0.29.0rc5
Any other information, logs, or outputs that you want to share?
Bazel-discuss group thread
The text was updated successfully, but these errors were encountered: