logoalt Hacker News

smaudettoday at 4:52 PM0 repliesview on HN

REPL isn't just more ineractive, it's open ended.

I.e. you could execute a unit test in a REPL (after e.g. loading the test), but you can't run a REPL in a unit test - you can debug a test and maybe do some REPL like things, but, it's not the same at all...

You also can't write a unit test in a unit test, you can in a REPL.

Heck, an AI chatbot is a (non deterministic) REPL (it reads, evaluates, and prints something)...

Like others were saying, they are different, i.e. nothing at all alike, tests do not obviate REPLs...