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

Herestring in REPL #731

Closed
jpellegrini opened this issue Mar 10, 2025 · 5 comments
Closed

Herestring in REPL #731

jpellegrini opened this issue Mar 10, 2025 · 5 comments

Comments

@jpellegrini
Copy link
Contributor

Hi @egallesio !
Herestrings work fine in the REPL, except that if one hots return after #<<, there is no way to end the herestring...

stklos> #<<


(There seems to be no way to exit that...)

@egallesio
Copy link
Owner

You can enter an eof.

@jpellegrini
Copy link
Contributor Author

It doesn't seem to work...

stklos> #<<


**** Error:
%read: eof seen while reading an here-string
	(type ",help" for more information)

@egallesio
Copy link
Owner

It permits to exit (this was your question 😉) the reading of the heretring, and you can continue. But I agree it is not pretty.

@egallesio
Copy link
Owner

I have a quick fix for this case. I'll commit it soon.
Thanks for the issue.

egallesio added a commit that referenced this issue Mar 23, 2025
We have less border cases and it resolves also the issue #731 signaled by
@jpellegrini :-)
@egallesio
Copy link
Owner

This is corrected now. You just need to enter an empty line to end the here-string

stklos> #<<  
abc " " def  
line 2  
  
"abc \" \" def\nline 2"  
stklos>

Thanks, @jpellegrini, for this issue.

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

No branches or pull requests

2 participants