Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sweet Macros O’ Mine

Sweet Macros O’ Mine

A simple ~10 minutes pitch on which I share a few thoughts about extending languages by taking advantage of macros and my experience playing with Sweet.js.

Matheus Albuquerque

December 20, 2016
Tweet

More Decks by Matheus Albuquerque

Other Decks in Programming

Transcript

  1. • Instance and type methods • Computed instance and computed

    type properties • Initializers • Subscripts • Conformance to a protocol
  2. Macros for languages that have a lot of special syntax

    take advantage of pattern matching.
  3. All macros in sweet.js are fully hygienic, which means that

    identifiers always reference the correct thing.