Skip to content

Added field access expressions

Pre-release
Pre-release
Compare
Choose a tag to compare
@sigmasoldi3r sigmasoldi3r released this 21 Jul 08:25
· 55 commits to master since this release

One of the biggest issues with accessing fields inside objects was the lack of access expressions for them.
Now, by using the unbounded access operator :: you can reference a field (Either method or other value...).

Bound reference : will cause a syntax error for now, in the future can be used to bind methods (Proposal pending).

;; Example:
(+ 1 some-obj::some-number)

Changelog

  • Added unbounded access expression for fields a::b::c.
  • Fixed runtime errors related to list methods.
  • Now range produces a list instead of an anonymous iterable object.
  • Import now can import non-binding packages (Anonymous import) like (import "some-pkg")
  • Embed runtime will produce now a do ... end block instead of an IIFE.
  • Better error reporting (Less clutter and internal traces).