mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fb52c1eea2
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>
674 B
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..)