... | ... | @@ -2,7 +2,7 @@ Links to some example macros. If you've written a cool macro and want to share p |
|
|
|
|
|
Note that these gists aren't necessarily kept up to date and might not work with the current version of sweet.js.
|
|
|
|
|
|
* [C-style assert() function](https://gist.github.com/TooTallNate/baa25c0a58b7bd181bab)
|
|
|
* [C-style assert() function](https://gist.github.com/TooTallNate/baa25c0a58b7bd181bab) - No longer working
|
|
|
* [haskell style do-notation](https://gist.github.com/3831514) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230304))
|
|
|
* [fragment of scheme](https://gist.github.com/3854258) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230315))
|
|
|
* [var destructuring](https://gist.github.com/grncdr/4554165)
|
... | ... | @@ -29,3 +29,4 @@ Note that these gists aren't necessarily kept up to date and might not work with |
|
|
* [sweetreaction](https://github.com/myfreeweb/sweetreaction) macros for the React library
|
|
|
* [tail call 'optimization'](https://gist.github.com/J-Chaniotis/4d4f516de7bd0acd38a8)
|
|
|
* [JSHint-clean array/object iterators & array comprehensions](https://gist.github.com/09d7fb45cd510f37b70f)
|
|
|
* [constexpr - evaluate expressions at compile time](https://gist.github.com/natefaubion/f4be4c8531ef45de87b4) |