google / google/jsonnet

Generalize `in` operator to work on strings and arrays

Open
#513 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

In Python `in` operator can be used to check if a value is an element of an array or if a string is a substring of another string. It's handy, the syntax is elegant and actually I was a bit surprised it doesn't work this way already.

@sparkprime Is there a specific reason for current behavior?

@camh- @chancez

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.