fabriquer / fabrique

A build description language
Other
3 stars 1 forks source link

constexpr #4

Closed trombonehero closed 5 years ago

trombonehero commented 9 years ago

It would be useful to be able to specify that a particular value is a constant: it can be statically evaluated independent of any configure-time decisions.

If we can evaluate these things, we can have, e.g., more flexible import() syntax:

all_sources = foreach module_name <- [ 'foo' 'bar' 'baz' ]
    import(module_name + '.fab').sources
trombonehero commented 9 years ago

This might have to wait until #29 is complete.

trombonehero commented 5 years ago

This is no longer required, now that we can use any expression as an argument to import() (which is now just a builtin function).