What's a REPL process and what can I use it for? [duplicate]

孤街浪徒 提交于 2019-12-22 21:43:12

问题


Possible Duplicate:
Relation between REPL, interpreter and compiler

I've been experimenting on heroku.com with node.js and I've heard of a "REPL process" I could use for experimenting in my app’s environment.

Could someone give me an overview of what it is, and how it might be applied?


回答1:


REPL - As per the Wikipedia entry

It's a Read Eval Print Loop.

What that means for you is: It's like a console for your app. Every line you type is added to the existing program. But it's a bit more complicated than a "mere console" and it has some fancy additional things you can do.

In the case of your question, it's the node that's the REPL, and if you invoke node (like on your own machine - it's not a very large program) without any app code, you get the REPL.



来源:https://stackoverflow.com/questions/8731782/whats-a-repl-process-and-what-can-i-use-it-for

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!