satyr/coco — Issue #99: Feature: `[a, b] is [c, d]`
Author: thejh
Created: 2011-10-17 11:40:39+00:00
State: open

Hello,
what would you think about a feature that converts a comparison like `[a, b] is [c, d]` that must be false (same for objects) to element comparisons? E.g.:

b() if ["foo", "bar"] is a()

would compile to

var _ref;
if (_ref=a(), _ref.length === 2 && _ref[0] === "foo" && _ref[1] === "bar") {
b();
}