---
title: "What is the syntax to write Macros in Erlang?"  
description: "What is the syntax to write Macros in Erlang?"  
author: "Anonymous User"  
published: 2015-06-27  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/2663/what-is-the-syntax-to-write-macros-in-erlang  
category: "erlang"  
tags: ["functional programming", "concurrent programming", "erlang"]  
reading_time: 1 minute  

---

# What is the syntax to write Macros in Erlang?

The syntax used to write Macros in Erlang is• define ( Const, Replacement ).• define ( Fun ( Var1 , Var2, …., Var ) , Replacement )

## Answers

### Answer by Anonymous User

The syntax used to write Macros in Erlang is• define ( Const, Replacement ).• define ( Fun ( Var1 , Var2, …., Var ) , Replacement )


---

Original Source: https://www.mindstick.com/interview/2663/what-is-the-syntax-to-write-macros-in-erlang

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
