Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline commands aren't supported #6

Open
schfkt opened this issue Jul 24, 2019 · 2 comments
Open

Multiline commands aren't supported #6

schfkt opened this issue Jul 24, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@schfkt
Copy link

schfkt commented Jul 24, 2019

It looks like I can't enter a multiline command in jay, e.g. a for loop:

> for (let applicant of applicants) { 
SyntaxError: Unexpected token (2:1)
> for (var i = 1; i < 10; i++) { 
SyntaxError: Unexpected token (2:1)

The same works fine in node REPL:

> const applicants = [1,2,3]
undefined
> for (let applicant of applicants) {
... console.log(applicant)
... }
1
2
3
undefined
> for (var i = 0; i < 3; i++) {
... console.log(i)
... }
0
1
2
undefined
@rsify rsify added the enhancement New feature or request label Jul 24, 2019
@GavinRay97
Copy link

This is a super huge deal for me as well, I love jay and have used it since near its release but not being able to do multi-line makes some things near impossible.

You cannot write more than a trivial amount of code at once, because it all has to go on a single line. And copy-pasting does not work.

@GavinRay97
Copy link

Here is most of it, I just cant get the evaluation to fire now:
PULL REQUEST: #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants