---
title: "Discussion on \"Pattern Matching in Elixir\" | Hashnode"
description: "Discussion on \"Pattern Matching in Elixir\". When I first started with Elixir, I was so used to imperative languages, I would think about how I would code something in one first and convert that to Elixir code. For example, here's a Java switch statement:\npublic static String bottlesPhrase(int ..."
url: "https://hashnode.com/posts/pattern-matching-in-elixir/5f7c73b1810147687ff4e2f9"
---

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

Discussion

# [Pattern Matching in Elixir](https://kahdev.hashnode.dev/pattern-matching-in-elixir?utm_source=hashnode&utm_medium=feed)

When I first started with Elixir, I was so used to imperative languages, I would think about how I would code something in one first and convert that to Elixir code. For example, here's a Java switch statement: public static String bottlesPhrase(int ...

Oct 6, 2020 · 5 min read · kahdev.hashnode.dev  
Updated Oct 10, 2020  
Read the article

-   [#elixir](https://hashnode.com/tag/elixir)
-   [#tutorials](https://hashnode.com/tag/tutorials)

## Written by

[Kah](https://hashnode.com/@kahdev)

@kahdev · Perth, Western Australia

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

Software developer, runner and backyard chickens

Thanks to some friends, I started programming in high school with QBASIC. Nowadays, I'm a software engineer working mostly in Java and active on Exercism. On weekends, you can find me outside, at a parkrun, tending to the veggie patch or the six backyard chooks.

## Responses 1

Markdown supported · ⌘↵ to post

[Benjamin Silva Herrera](https://hashnode.com/@silva96)

[Nov 26, 2020](https://hashnode.com/posts/pattern-matching-in-elixir/5f7c73b1810147687ff4e2f9/comment/5fbef60d08c16c34b89c4965)

I hate there's no syntax highlighting for elixir

```
defmodule ThatSucks do
  def call do
    IO.puts("YES, indeed it sucks")
  end
end
```
