-
Notifications
You must be signed in to change notification settings - Fork 105
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
Allow meta-comment to split the worksheet to enable macro examples in Scastie #532
Comments
@soronpo afair macros should be in a separate module for 2.13, was that relaxed to separate file in 3? |
Yes, what I mean was that the separate file will run as a test, which is considered to be a separate module. |
So maybe the proper term is actually a test separator and not a sheet separator. |
understood |
Any progress on this? Or is there another workaround for using scala 3 macros? |
I think it will be very beneficial if we could run macro examples in Scastie.
It will be great if we can virtually split the file into two to allow for macro examples.
The most simple way I though of was to add a meta-comment.
Meta-comment
Using a meta-comment
/* $NEW_SHEET$ */
will tell scastie to split the sheet.I think that implementation-wise this may be the simplest solution. The only tricky thing is to translate the positioning errors across the split files.
The text was updated successfully, but these errors were encountered: