You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: Support string concatenation with + operator #412
Flow does not support string concatenation with the + operator. Attempting to concatenate strings fails to compile.
Reproduction
function main() -> i32 {
let prefix: string = " "
let indent: string = prefix + " "
print(indent)
return 0
}
This fails to compile.
Expected behavior
The + operator should concatenate two strings and produce a new string.
Workaround
Build output incrementally using print() calls in loops instead of constructing strings:
let mut i: i32 = 0
while i < depth {
print(" ")
i = i + 1
}
Impact
Discovered in flow-scikit tree.flow while implementing export_tree_text. Tree visualization, text formatting, and any code that builds strings dynamically is affected. The workaround works but produces output one piece at a time rather than constructing a single string.
Activity
test: regression tests for string concatenation with + (#412)
fix: multiple compiler bugs and project conventions (#419)
godofecht commentedon Aug 11, 2026
Fixed in PR #419 (merged).