# Ganja VS Prettier

**URL:** <https://talk.observablehq.com/t/ganja-vs-prettier/5325>\
**Category:** Feedback\
**Created:** [July 13, 2021, 3:25am UTC](https://talk.observablehq.com/t/ganja-vs-prettier/5325 "2021-07-13T03:25:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![DanielKerrigan](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/danielkerrigan/32/2958_2.png) [@DanielKerrigan](https://talk.observablehq.com/u/DanielKerrigan)\
**Post date:** [July 14, 2021, 4:26am UTC](https://talk.observablehq.com/t/ganja-vs-prettier/5325/4 "2021-07-14T04:26:16Z")

</div>

The [Ganja syntax notes](https://observablehq.com/@tmcw/ganja-syntax-notes) notebook from tmcw comments on this problem as well:

> The same goes for pretty much all JavaScript syntax: the ganja interpretation is different. Arithmetic is overloaded as vector operations, negation is the dual, bit-shifting operators mean a dot product instead.  
> This has meant – for me in particular – that when I’m writing a lot of ganja-related code, I turn off [Prettier support in Observable](https://talk.observablehq.com/t/prettier-code-formatting/365/3) - which is guaranteed to format your JavaScript into equivalent JavaScript, but that formatting _may_ change the meaning of said JavaScript in Ganja.

---

_[View the full topic](https://talk.observablehq.com/t/ganja-vs-prettier/5325)._
