Azure / Azure/bicep

Add operator (+) should support strings and compile to concat function

Open
#1,488 4 comments 0 reactions 0 assignees View on GitHub
enhancement intermediate language
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**
To improve building strings and perhaps enable multi-line experience similar to one that is present in C#, we could use `+` sign to concatenate strings.

**Describe the solution you'd like**
Currently expression `var x = 'a' + 'b'` gives error, while it could be compiled to `concat` function.

Contributor guide

Open the contributing guide

Research direction

Use the issue's expression example as the starting point and locate the compiler entry points for binary operators and the concat function. Confirm how string operands should be handled and add coverage showing that `var x = 'a' + 'b'` compiles as concatenation; done means the expression no longer errors and produces the expected concatenated value.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.