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

Ability to create multiline blocks in boa shell #341

Closed
HalidOdat opened this issue Apr 21, 2020 · 1 comment · Fixed by #590
Closed

Ability to create multiline blocks in boa shell #341

HalidOdat opened this issue Apr 21, 2020 · 1 comment · Fixed by #590
Labels
cli Issues and PRs related to the Boa command line interface. enhancement New feature or request
Milestone

Comments

@HalidOdat
Copy link
Member

HalidOdat commented Apr 21, 2020

Instead of passing everything in one line.

function hello() {console.log("Hello")} hello();

You could pass:

function hello() {
	console.log()
}

hello();

When passing function hello() { boa shell would wait until passing the closing }.

@HalidOdat HalidOdat added enhancement New feature or request cli Issues and PRs related to the Boa command line interface. labels Apr 21, 2020
@IovoslavIovchev
Copy link
Contributor

I would recommend we also do something similar to what ghci does -- you specify the beginning of a multiline block with :{ and the end with :}. This would also be easier to implement, rather than waiting for a matching closing }.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues and PRs related to the Boa command line interface. enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants