# Anyone implementing the interpreter using a different pattern than Visitor?

**URL:** <https://forum.codecrafters.io/t/anyone-implementing-the-interpreter-using-a-different-pattern-than-visitor/2112>\
**Category:** Challenges\
**Tags:** challenge:interpreter\
**Created:** [October 1, 2024, 8:34pm UTC](https://forum.codecrafters.io/t/anyone-implementing-the-interpreter-using-a-different-pattern-than-visitor/2112 "2024-10-01T20:34:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [October 2, 2024, 3:02am UTC](https://forum.codecrafters.io/t/anyone-implementing-the-interpreter-using-a-different-pattern-than-visitor/2112/3 "2024-10-02T03:02:35Z")

</div>

I found the Visitor Pattern cumbersome as well, especially in languages that don’t have to use class for everything.

It’s arguably cleaner to use **pattern matching** with **destructuring** , for example:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/4/4422b0ca88e4bb3b6920ac877568fd1d0ed10fcc.png)

---

_[View the full topic](https://forum.codecrafters.io/t/anyone-implementing-the-interpreter-using-a-different-pattern-than-visitor/2112)._
