Rewrite in Sweet.js