Skip to content

[v3.62.12] Breaking Change: Function parameters cannot use array types [T; N] #2

@noahgift

Description

@noahgift

Breaking Change Description

Error Message:

✗ Syntax error: Function parameters must be simple identifiers or destructuring patterns

Affected Version: v1.89.0 → v3.62.12
Category: Syntax - Function Parameters
Files Affected: 4 (dijkstra, tsp, topological_sort, graph_analytics)

Scientific Impact

🔴 CRITICAL - Blocks 16.7% of validated algorithms (4/24 v189 files)

Blocked: Graph algorithms, optimization problems, data science analytics

Code Example

v1.89.0 ✅ Worked:
```ruchy
fun add_edge(matrix: [i32; 25], from: i32, to: i32, weight: i32) -> [i32; 25] { }
```

v3.62.12 ❌ Error:
```
Syntax error: Function parameters must be simple identifiers or destructuring patterns
```

Proposed Workarounds

Option 1: References `matrix: &[i32; 25]` ⏳
Option 2: Wrapper struct ⏳
Option 3: Global state ❌ (breaks formal verification)

Migration Priority

Target: Sprint 35 Day 3 (Oct 3)
Success: Restore 4 files → 68.3% success rate

See: `docs/BREAKING_CHANGES_V3.md`

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-changeBreaking change in Ruchy version upgrademigrationVersion migration issuep0-criticalP0 Critical priorityv3.62.12Ruchy version 3.62.12 specific

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions