What's Changed
Version 0.4.0 by @ozanh in #26
- Added Go 1.20 to GitHub workflow.
- Added new call API with
NameCallerObject
andExCallerObject
interfaces. - Added new OpCode CALLNAME for the method call.
- Added Invoker to run CompiledFunction and any other callable by using new call API.
- Refactored builtins and stdlib for new call API.
- Added methods to time object.
- Added deprecation notices to some time module functions in favor of methods.
- Added registry package to let external packages register their types to convert from/to Go types.
- Registered stdlib modules’ types with registry package on init.
- Preserved backward compatibility of source code, but encoded byte code will not work on versions less than v0.4.0 due to added OpCode.
- Added new functions to the strings module, which accepts any callable.
- Refactored mkcallable for new API to generate wrappers.
- Fixed string formatting of built-in types, which affected prints.
- Fixed a parser bug.
- Fixed minor issues and typos.
- Updated copyright year.
Full Changelog: v0.3.2...v0.4.0