Files
mgmt/engine/resources
James Shubin 90fd8023dd lang, engine: Add a facility for resources to export constants
Since we focus on safety, it would be nice to reduce the chance of any
runtime errors if we made a typo for a resource parameter. With this
patch, each resource can export constants into the global namespace so
that typos would cause a compile error.

Of course in the future if we had a more advanced type system, then we
could support precise types for each individual resource param, but in
an attempt to keep things simple, we'll leave that for another day. It
would add complexity too if we ever wanted to store a parameter
externally.

Lastly, we might consider adding "special case" parsing so that directly
specified fields would parse intelligently. For example, we could allow:

	file "/tmp/hello" {
		state => exists,	# magic sugar!
	}

This isn't supported for now, but if it works after all the other parser
changes have been made, it might be something to consider.
2020-01-29 11:16:04 -05:00
..
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00
2020-01-03 20:08:37 -05:00