about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-07-06 17:47:41 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-07-06 17:50:52 +0200
commit8e585e7008ac5b01c76b6f5830aa9e3104d83bbd (patch)
treefdf46d0ba8fa983f1a39d7cf407876ce92734313 /src/rt/rust_task.cpp
parent7661c08496b0dc9ce55657246f8e5e42051c812e (diff)
downloadrust-8e585e7008ac5b01c76b6f5830aa9e3104d83bbd.tar.gz
rust-8e585e7008ac5b01c76b6f5830aa9e3104d83bbd.zip
Support paren-free and lightweight-case syntax
(The old syntax is still supported as well, for now.)

It is now possible to leave out the parens around if, while, and
do/while conditions, and around alt expressions. Cases in an alt block
can now leave off the case keyword and parens around the pattern.

After the next snapshot, we can start migrating our code to use the
new alt syntax, probably with a pretty-printer pass. The paren-free
syntax will remain optional (you may always parenthesize expressions),
but the old case syntax will no longer be supported in the future.
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions