🏠 back to Observable

📎 Clippy returns


Remember clippy? Taking a lesson from clippy’s widespread success, we just introduced a friendlier onramp for some code errors.

Essentially, some folks don’t want to read the documentation for what code works with Observable, and I don’t blame them (and I rarely read the docs). So for some errors, we now offer an automatic fix, triggered by a magic wand. If you add a var, let, or const at the beginning of the cell, it’ll remove it for you. Same with if you write an object but forget the (), which differentiate it from vanilla JavaScript.

We’re only fixing a few small cases like these at the beginning, but there’s a lot more we can do, and we’ll progressively make clippy (aka, the magic wand) smarter as we go.


lazy me says hello


1 Like