Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sweet-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sweet-js
  • sweet-core
  • Wiki
  • Example macros

Example macros · Changes

Page history
Adding fixes for param ann, chained comp, case matching, and cond better switching authored Jun 10, 2014 by Austin King's avatar Austin King
Hide whitespace changes
Inline Side-by-side
Example-macros.md
View page @ 37cc9aa0
...@@ -5,17 +5,17 @@ Note that these gists aren't necessarily kept up to date and might not work with ...@@ -5,17 +5,17 @@ Note that these gists aren't necessarily kept up to date and might not work with
* [haskell style do-notation](https://gist.github.com/3831514) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230304)) * [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)) * [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/aaditmshah/7065183) * [var destructuring](https://gist.github.com/aaditmshah/7065183)
* [parameter annotations](https://gist.github.com/3902112) * [parameter annotations](https://gist.github.com/3902112) (update for v0.3.x [here](https://gist.github.com/ozten/8fa2f35d400e38b528dd))
* [coffeescript's `do` syntax](https://gist.github.com/4013740) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230362)) * [coffeescript's `do` syntax](https://gist.github.com/4013740) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230362))
* [chained comparisons](https://gist.github.com/4027626) * [chained comparisons](https://gist.github.com/4027626) (update for v0.3.x [here](https://gist.github.com/ozten/c9330efe9ee16ce4da3c))
* [rudimentary enum](https://gist.github.com/4065056) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230455)) * [rudimentary enum](https://gist.github.com/4065056) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230455))
* [y-combinator](https://gist.github.com/4133116) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230476)) * [y-combinator](https://gist.github.com/4133116) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230476))
* [repo with lots of examples](https://github.com/fabriceleal/SweetJsTests) * [repo with lots of examples](https://github.com/fabriceleal/SweetJsTests)
* [null checking](https://gist.github.com/4165526) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230494)) * [null checking](https://gist.github.com/4165526) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230494))
* [hygienic destructuring using the coffeescript-style `$do` macro](https://gist.github.com/4554165) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230514)) * [hygienic destructuring using the coffeescript-style `$do` macro](https://gist.github.com/4554165) (update for v0.3.x [here](https://gist.github.com/Nami-Doc/8230514))
* [contracts](https://github.com/oleiman/sweet-contracts) * [contracts](https://github.com/oleiman/sweet-contracts)
* [case matching](https://gist.github.com/disnet/6024833) * [case matching](https://gist.github.com/disnet/6024833) (update for v0.3.x [here](https://gist.github.com/ozten/0a2e982044de8830f105))
* [cond (better switch)](https://gist.github.com/disnet/6024991) * [cond (better switch)](https://gist.github.com/disnet/6024991) (update for v0.3.x [here](https://gist.github.com/ozten/f4a23d85e49a628c4a35))
* [randomly disappearing code](https://gist.github.com/Nami-Doc/95e8334830aced6d1e52) * [randomly disappearing code](https://gist.github.com/Nami-Doc/95e8334830aced6d1e52)
* [shorthand function syntax, inspired by clojure's shorthand function macro](https://github.com/benjreinhart/lambda-jam) * [shorthand function syntax, inspired by clojure's shorthand function macro](https://github.com/benjreinhart/lambda-jam)
* [arrow functions](https://gist.github.com/btd/8663940) * [arrow functions](https://gist.github.com/btd/8663940)
......
Clone repository
  • Example macros
  • FAQ
  • High level design overview
  • Home
  • Macro resources
  • Patterns
  • Syntax Case
  • case api
  • custom operators
  • design
  • expander design
  • modules
  • node loader
  • pattern_class
  • reader scratch
View All Pages