Release: 0.29.0 - Helpful Errors
Error codes + "Did you mean?" suggestions + cleaner type hints + better macro/parser error context
🎉 Added
- Add "Did you mean?" suggestions for undefined symbols using Levenshtein distance
- Add error codes (PHEL001-399) for documentation lookup and categorized error types
- Add type hints in error messages with clean type names (e.g.,
Symbolinstead ofPhel\Lang\Symbol) - Add arity ranges in function call errors (e.g., "Expected: 2 or 3" or "at least 2")
- Add macro expansion context showing the macro name and form being expanded when errors occur
- Add parser error context showing the line where unterminated constructs started
⚖️ Changed
- Add emoji headers to GitHub release notes in
release.sh
🐛 Fixed
- Fix
re-seqdoesn't return capture groups (#1086)
👥 Contributors
@Chemaclass @JesusValeraDev @smeghead
Full Changelog: v0.28.0...v0.29.0
Downloads
- phel.phar (1.1 MB)