Copilot
Your everyday AI companion
About 46,200 results
    Upvotes143Top Answeredited Dec 12, 2019 at 18:59

    Metaprogramming refers to a variety of ways a program has knowledge of itself or can manipulate itself.

    In languages like C#, reflection is a form of metaprogramming since the program can examine information about itself. For example returning a list of all the properties of an object.

    In languages like ActionScript, you can evaluate functions at runtime to create new programs such as eval("x" + i). DoSomething() would affect an object called x1 when i is 1 and x2 when i is 2.

    Finally, another common form of metaprogramming is when the program can...

    Content Under CC-BY-SA license
    Was this helpful?

    See results from:

  1. See more
    See more
    See all on Wikipedia
    See more

    Metaprogramming - Wikipedia

    Metaprogramming is a programming technique in which computer programs have the ability to treat other programs as their data. It means that a program can be designed to read, generate, analyse or transform other programs, and even modify itself while running. In some cases, this allows programmers to … See more

    Metaprogramming enables developers to write programs and develop code that falls under the generic programming paradigm. Having the programming language itself as a See more

    Code generation
    A simple example of a metaprogram is this POSIX Shell script, which is an example of generative programming See more

    Macro systems
    Common Lisp and most Lisp dialects.
    • Scheme hygienic macros
    MacroML See more

    1970s and 1980s
    Metaprogramming was popular using list processing languages such as LISP.
    1980s
    LISP hardware machines were popular and used for artificial intelligence applications.
    2019-10-16
    The article "Metaprogramming" was created on Wikipedia.
    2021-08-17
    The article "Metaprogramming" was last edited on Wikipedia.

    Some argue that there is a sharp learning curve to make complete use of metaprogramming features. Since metaprogramming … See more

    The list of notable metaprogramming systems is maintained at List of Program Transformation Systems. See more

    Wikipedia text under CC-BY-SA license
    Feedback
  2. What exactly is metaprogramming? - Stack Overflow

  3. Meta programming - JavaScript | MDN - MDN Web Docs

  4. c++ - What is metaprogramming? - Stack Overflow

  5. Metaprogramming - Devopedia

  6. Metaprogramming Unveiled: An Introductory Guide with Examples

  7. What is Metaprogramming in JavaScript? In English, …

    WebNov 3, 2020 · Metaprogramming is a programming technique that allows you to write code that can generate, modify, or analyze other programs in JavaScript. Learn how to use the Reflect and Proxy objects from ES6 …

  8. Code Writing Code: An Intro to Metaprogramming

    WebLearn what metaprogramming is, how it works, and why it matters. Explore examples of metaprogramming in Julia, Rust, and other languages, and discover the history, forms, and future of this fascinating technique.

  9. A Practical Guide to Metaprogramming in Python

  10. metaprogramming - Loyola Marymount University