---
title: "Discussion on \"Elixir 의 = 과 ^\" | Hashnode"
description: "Discussion on \"Elixir 의 = 과 ^\". 엘릭서를 처음 배우면 = 때문에 헷갈리는 일이 있다.다른 언어는 = 을 대입연산자라고 부른다.하지만 엘릭서는 매칭연산자라고 부른다.\n\n=는 패턴 매칭임\n양쪽이 맞으면 변수에 값 바인딩 됨.\nx = 1\n# x == 1\n\n{a, b} = {1, 2}\n# a == 1, b == 2\n즉, =는 “대입”이라기보다 양쪽 맞추기임.\n\n매칭 실패도 있음\n{a, b} = {1, 2, 3}\n# MatchError\n\n1 = 2\n# MatchError\n\n양쪽 안 맞..."
url: "https://hashnode.com/posts/elixir/68bd8f412e4d6bb950ac1d3f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Elixir 의 = 과 ^](https://kkbz.hashnode.dev/elixir?utm_source=hashnode&utm_medium=feed)

엘릭서를 처음 배우면 = 때문에 헷갈리는 일이 있다.다른 언어는 = 을 대입연산자라고 부른다.하지만 엘릭서는 매칭연산자라고 부른다. =는 패턴 매칭임 양쪽이 맞으면 변수에 값 바인딩 됨. x = 1 # x == 1 {a, b} = {1, 2} # a == 1, b == 2 즉, =는 “대입”이라기보다 양쪽 맞추기임. 매칭 실패도 있음 {a, b} = {1, 2, 3} # MatchError 1 = 2 # MatchError 양쪽 안 맞...

Sep 7, 2025 · 2 min read · kkbz.hashnode.dev  
Read the article

## Written by

[Wonwoo Cho](https://hashnode.com/@kkbz)

@kkbz

  
[View profile](https://hashnode.com/@kkbz)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
