|
# NOTE: All of these examples are currently **very** out of date. The [SweetJs website](http://sweetjs.org/) has up-to-date reference material and tutorials.
|
|
|
|
|
|
|
|
Links to some example macros. If you've written a cool macro and want to share please add!
|
|
Links to some example macros. If you've written a cool macro and want to share please add!
|
|
|
|
|
|
Note that these gists aren't necessarily kept up to date and might not work with the current version of sweet.js.
|
|
## ~2.0.0
|
|
|
|
* [basic hello](http://sweetjs.org/doc/1.0/tutorial.html#_sweet_hello)
|
|
|
|
* [let](http://sweetjs.org/doc/1.0/tutorial.html#_sweet_let)
|
|
|
|
* [cond (better switch)](http://sweetjs.org/doc/1.0/tutorial.html#_sweet_cond)
|
|
|
|
* [class](http://sweetjs.org/doc/1.0/tutorial.html#_sweet_class)
|
|
|
|
* [ML-like auto-curried functions](https://gist.github.com/WreckedAvent/9aa698d3e9e6a46c5c62c1e266c95f20#file-curry-js)
|
|
|
|
|
|
## Repos
|
|
## ~0.3.0
|
|
* [contracts](https://github.com/oleiman/sweet-contracts)
|
|
* [contracts](https://github.com/oleiman/sweet-contracts)
|
|
* [lambda-jam](https://github.com/benjreinhart/lambda-jam) - shorthand function syntax, inspired by clojure's shorthand function macro
|
|
* [lambda-jam](https://github.com/benjreinhart/lambda-jam) - shorthand function syntax, inspired by clojure's shorthand function macro
|
|
* [CSP-style tasks and channels](https://github.com/srikumarks/cspjs)
|
|
* [CSP-style tasks and channels](https://github.com/srikumarks/cspjs)
|
|
* [sweetreaction](https://github.com/myfreeweb/sweetreaction) - macros for react
|
|
* [sweetreaction](https://github.com/myfreeweb/sweetreaction) - macros for react
|
|
|
|
|
|
## Snippets
|
|
|
|
### ~0.3.0
|
|
|
|
* [haskell style do-notation](https://gist.github.com/3831514)
|
|
* [haskell style do-notation](https://gist.github.com/3831514)
|
|
* [fragment of scheme](https://gist.github.com/3854258)
|
|
* [fragment of scheme](https://gist.github.com/3854258)
|
|
* [parameter annotations](https://gist.github.com/ozten/8fa2f35d400e38b528dd)
|
|
* [parameter annotations](https://gist.github.com/ozten/8fa2f35d400e38b528dd)
|
... | | ... | |