Home > DeveloperSection > Interviews > What is the syntax to write Macros in Erlang?

Posted on    June-27-2015 12:34 AM

 erlang Functional Programming  Concurrent Programming  erlang 
Ratings:
 1 Answer(s)
  351  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    June-27-2015 12:34 AM

The syntax used to write Macros in Erlang is
• define ( Const, Replacement ).
• define ( Fun ( Var1 , Var2, …., Var ) , Replacement )

Don't want to miss updates? Please click the below button!

Follow MindStick