---
title: "Discussion on \"Elixir Access behaviour\" | Hashnode"
description: "Discussion on \"Elixir Access behaviour\". TIL\n\nAccess supports keyword lists (Keyword) and maps (Map) out of the box, but not structs.\nThere is a reason why Elixir does not implement Access behaviour for structs.\nPerfer data.key for accessing predefined atom keys of map or struct.\n\nAccess be..."
url: "https://hashnode.com/posts/elixir-access-behaviour/61914c4383e4212d6e579e00"
---

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

Discussion

# [Elixir Access behaviour](https://blog.mnishiguchi.com/elixir-access-behaviour?utm_source=hashnode&utm_medium=feed)

TIL Access supports keyword lists (Keyword) and maps (Map) out of the box, but not structs. There is a reason why Elixir does not implement Access behaviour for structs. Perfer data.key for accessing predefined atom keys of map or struct. Access be...

Nov 14, 2021 · 2 min read · blog.mnishiguchi.com  
Read the article

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

## Written by

[Masatoshi Nishiguchi](https://hashnode.com/@mnishiguchi)

@mnishiguchi · Washington, DC

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

## Responses

Comments are turned off for this post.
