Skip to content

Commit

Permalink
Remove REPL support until later release
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones committed Apr 13, 2023
1 parent 1b80579 commit ec97a3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ Binds a simple identifier to an initialization expression which may be used
in a subsequenct result expression. Bindings may also be nested within each
other.

cel.bind(<varName>, <initExpr>, <resultExpr>)
cel.bind(<varName>, <initExpr>, <resultExpr>)

Examples:

cel.bind(a, 'hello',
cel.bind(b, 'world', a + b + b + a)) // "helloworldworldhello"
cel.bind(a, 'hello',
cel.bind(b, 'world', a + b + b + a)) // "helloworldworldhello"

// Avoid a list allocation within the exists comprehension.
cel.bind(valid_values, [a, b, c],
[d, e, f].exists(elem, elem in valid_values))
// Avoid a list allocation within the exists comprehension.
cel.bind(valid_values, [a, b, c],
[d, e, f].exists(elem, elem in valid_values))

Local bindings are not guaranteed to be evaluated before use.

Expand Down
5 changes: 3 additions & 2 deletions ext/bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ import (
// Examples:
//
// cel.bind(a, 'hello',
// cel.bind(b, 'world', a + b + b + a)) // "helloworldworldhello"
// cel.bind(b, 'world', a + b + b + a)) // "helloworldworldhello"
//
// // Avoid a list allocation within the exists comprehension.
// cel.bind(valid_values, [a, b, c], [d, e, f].exists(elem, elem in valid_values))
// cel.bind(valid_values, [a, b, c],
// [d, e, f].exists(elem, elem in valid_values))
//
// Local bindings are not guaranteed to be evaluated before use.
func Bindings() cel.EnvOption {
Expand Down

0 comments on commit ec97a3e

Please sign in to comment.