# Hash delimiter =\>

**URL:** https://forum.crystal-lang.org/t/hash-delimiter/7906
**Category:** Help & Support
**Created:** [March 28, 2025, 5:27pm UTC](https://forum.crystal-lang.org/t/hash-delimiter/7906 "2025-03-28T17:27:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![3xtraterrestrial](https://avatars.discourse-cdn.com/v4/letter/3/a587f6/32.png) [@3xtraterrestrial](https://forum.crystal-lang.org/u/3xtraterrestrial)
#### Post date: [March 28, 2025, 5:27pm UTC](https://forum.crystal-lang.org/t/hash-delimiter/7906/1 "2025-03-28T17:27:41Z")

</div>

I feel like using “=\>” as delimiter to associate the k/v can be confusing for new programmers coming over to enjoy the Crystal language.

What are thoughts on changing it OR being able to utilize something like “\>\>\>” OR “\<\<\>\>” ?

---

<div class="post-metadata">

### Author: ![Blacksmoke16](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/blacksmoke16/32/1241_2.png) [@Blacksmoke16](https://forum.crystal-lang.org/u/Blacksmoke16)
#### Post date: [March 28, 2025, 5:34pm UTC](https://forum.crystal-lang.org/t/hash-delimiter/7906/2 "2025-03-28T17:34:27Z")

</div>

I don’t think there have been any discussions around changing this, or allowing other values. `=>` is used in a few other languages too so I can’t really imagine this being worth it.

---

<div class="post-metadata">

### Author: ![3xtraterrestrial](https://avatars.discourse-cdn.com/v4/letter/3/a587f6/32.png) [@3xtraterrestrial](https://forum.crystal-lang.org/u/3xtraterrestrial)
#### Post date: [March 28, 2025, 6:02pm UTC](https://forum.crystal-lang.org/t/hash-delimiter/7906/3 "2025-03-28T18:02:52Z")

</div>

Fair enough. Another question I have around hashes, is how come say when I want to “p!” something out for a hash.

p! {“Key” =\> “value”}

This will not work as I expect, will throw a error. Unless I assign it to a variable ,

But for the same thing, using arrays, this would be fine.

---

<div class="post-metadata">

### Author: ![nobodywasishere](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/nobodywasishere/32/1983_2.png) [@nobodywasishere](https://forum.crystal-lang.org/u/nobodywasishere)
#### Post date: [March 28, 2025, 6:07pm UTC](https://forum.crystal-lang.org/t/hash-delimiter/7906/4 "2025-03-28T18:07:49Z")

</div>

That’s because `{}` in this context is used to signify a block

```crystal
def foo(&)
  yield
end

foo { "bar" } # => "bar"

```

---

<div class="post-metadata">

### Author: ![yxhuvud](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/yxhuvud/32/27_2.png) [@yxhuvud](https://forum.crystal-lang.org/u/yxhuvud)
#### Post date: [March 28, 2025, 9:36pm UTC](https://forum.crystal-lang.org/t/hash-delimiter/7906/5 "2025-03-28T21:36:02Z")

</div>

In addition to what has been said, `p!({"key" => "value"})` is a way to work around that.
