Skip to content

Instantly share code, notes, and snippets.

@tomhodgins
Created November 3, 2020 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomhodgins/fab48901d1229ce2a5ebdae557e52f12 to your computer and use it in GitHub Desktop.
Save tomhodgins/fab48901d1229ce2a5ebdae557e52f12 to your computer and use it in GitHub Desktop.

Ways to extend a language with custom stuff that works™

  • define stuff in the language to use (libraries)
  • if the language lets you define custom parts of syntax (macros, plugins, etc) use the built-in methods for extending the language itself
  • create an entirely separate DSL for working with solutions in this problem space and figure out how that maps to this language

Ways to extend a language with custom stuff that doesn't work™

  • try to add additional syntax as a thin layer on top of a separate, growing language still under development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment