2015-12-26

There are property implementation patterns that come up repeatedly. Rather than hardcode a fixed set of patterns into the compiler, we should provide a general “property behavior” mechanism to allow these patterns to be defined as libraries.

A var or let declaration can specify its behavior in parens after the keyword:

var (lazy) foo = 1738

links collected by
Maciej Konieczny

latest · tags · feed