![]() ![]() Reflection refers to a program modifying other programs or itself. The program has access to information about itself or other programs. This definition broadly covers the first part of the definition of metaprogramming: "a program can be designed to read. ![]() Introspection refers to a program revealing metadata about other programs or itself. There are two types of metaprogramming that prescribe varying degrees of control over a given program: Introspection In essence, metaprogramming - much like metadata - revolves around "a set of programs that describe and give information about other programs" (adapted from the Oxford dictionary definition of metadata). Let's develop an understanding of metaprogramming and uncover some Elixir metaprogramming secrets! Introducing Metaprogramming in ElixirĪccording to Harald Sondergaard, metaprogramming is:Ī programming technique in which computer programs have the ability to treat other programs as their data meaning thatĪ program can be designed to read, generate, analyze, or transform other programs, and even modify itself while In this four-part series, we'll start by looking at core concepts and then explore how metaprogramming operates in Elixir specifically. In this world, there are many mysteries - but few are as elusive as metaprogramming in Elixir. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |