commit | 291258448c30c6faf23516d6960162e1af36b40b | [log] [tgz] |
---|---|---|
author | adonovan <adonovan@google.com> | Thu Dec 12 13:33:20 2019 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Dec 12 13:34:22 2019 -0800 |
tree | 7f75e7ac6964c5bce6f7883871ef854c72a51ddc | |
parent | 934c4fd4a4a96093a2cd0b08cf619bef04d0b582 [diff] |
bazel: stop implementing BaseFunction.call Most subclasses of BaseFunction have a signature of f(**kwargs), for which BaseFunction's "inner" protocol is overkill. This change causes them to implement StarlarkCallable.callImpl directly. For now, they still override BaseFunction, because it defines other methods (e.g. repr), and because some places in the code check for "instanceof BaseFunction" when they should really be more general (StarlarkCallable) or more specific (StarlarkFunction). PiperOrigin-RevId: 285259322
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md