yesodweb/yesod — Issue #165: Non-controversial Shakespeare improvements
Author: snoyberg
Created: 2011-10-25 06:39:15+00:00
State: open
Labels: Feature Request

Amidst all of the discussions regarding changes in syntax, let's get a list of features that we can all agree should be added.

* Pattern matching for tuples, so that `$forall (userid, user) <- users` works. More general pattern matching is problematic because it can fail at runtime. Tuples will always fail at compile time.
* Infix operators, so that `(+) foo bar` becomes `foo + bar`. This should likely only work if there is a single operator, however, to avoid associativity issues.
* List syntax (not for pattern matching), eg `#{show [foo, bar]}`