Support accessing relevant member functions on a wider variety of types
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 81
Description
The example from the discussion below is for `string` types, but could be expanded for more:
```bicep
var length = myArray.length()
var doesContainFoo = myObject.contains('foo')
...
```
### Discussed in https://github.com/Azure/bicep/discussions/4429
Originally posted by **CShen-RACI** September 13, 2021
Just my 2 cents, do you guys think it will be better to use program language way to call the function? For example to convert string to upper case, which way is better
`upper(rgName)`
or
`rgName.Upper()`
Contributor guide
Research direction
Start with the array and object examples in the issue and read the linked discussion 4429 to understand the proposed member-function syntax. The scope of supported types and functions is not defined here; done would require an agreed scope and verified behavior for the selected examples.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100