jckarter/clay — Issue #78: 'static' should be a declaration, not a wrapper
Author: jckarter
Created: 2011-12-20 18:58:09+00:00
State: open
Labels: language-feature, v0.2

`static` should be a declaration that the following expression or argument must be evaluated at compile time. The value should not be wrapped as it currently is. `foo(static x:Int) { }` should accept an `Int` value `x` evaluated at compile-time. The pattern-matching behavior of current `static` could perhaps be preserved with slightly different syntax, perhaps `[T] bar(static: T)`.