Files
mruby-mruby/TODO.md
T
Yukihiro "Matz" Matsumoto fb52c1eea2 TODO.md: remove pattern matching (implemented)
pattern matching is now implemented with support for:
- case/in syntax with multiple in-clauses
- array patterns with rest (*) and post-rest elements
- hash patterns with shorthand and rest (**)
- guard clauses (if/unless)
- alternative patterns (|)
- pin operator (^)
- as pattern (=>)
- one-line pattern matching (expr in pat, expr => pat)
- NoMatchingPatternError exception

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-18 16:27:27 +09:00

674 B

Things to Do in the future

After mruby 3.4

  • parser and code generator independent from mrb_state (picoruby?)
  • iv/hash entry cache
  • method inline caching improvements (cache method lookup results)
  • more peephole optimization (if possible)
  • built-in profiler (method call tracing, stack profiling, detailed memory analysis)
  • improved REPL (mirb) features (syntax highlighting)
  • configurable memory pools (per-object-type, memory-constrained devices)
  • suspend/resume VM state (serialize/deserialize for power cycling)
  • CMake build support (better IDE integration, standard C tooling)

Things to do (Things we need to consider)

  • special variables ($1,$2..)