-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contract declarations on functions not of the form "function name(){}" #23
Comments
Yeah we need some syntax to wrap an arbitrary expression in a contract. Here are some possibilities: var f = @ wrap {
function () { ... }
} in (Num) -> Num
var f = @ wrap {
function () { ... }
} (Num) -> Num
var f = @ (Num) -> Num wrap {
function () { ... }
} I'm not really excited about any of these. Any ideas? |
Of all of them, I certainly like the last the best. I was thinking @Wrap (Num) -> Num would read the next expression and wrap the first function expression it On Fri, Oct 10, 2014 at 6:29 PM, Tim Disney [email protected]
|
I can't seem to get anything to work except for the named function form. EX:
The text was updated successfully, but these errors were encountered: