simonask / snow-deprecated

(ATTENTION WATCHERS: This repository is deprecated. Please watch 'snow' instead.) Snow is a simple, dynamic, and expressive programming language with an emphasis on speed and simplicity. Snow is fully object-oriented, and fully function-oriented at the same time.
http://snow.meta.io/
Other
21 stars 1 forks source link

`if` within argument list is syntax error. #44

Closed Mikoangelo closed 15 years ago

Mikoangelo commented 15 years ago

The following is currently a syntax error:

puts(if true; 0; else; 1; end)

All similar variations are also syntax errors.

Tested with af55a94f7ce2c50b372fe4d3114f945fec80496a compiled on Mac OS X 10.5.7, x86_64.

ghost commented 15 years ago

An argument is now a statement instead of an expression (closed by 54121d28060ea980ccd8920428a5ab242841124e).