-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
|
||
Ank also has support to turn Kotlin snippets into Kotlin Playgrounds w/ support for Arrow. | ||
For a snippet to be runnable it needs to contain a `main` function, | ||
and you can mark the begin and end of the example using `//sampleStart` & `//sampleEnd`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a reminder about the need for having all the sources you need in the snippet otherwise it'll fail. Also clarify that if you need to showcase compile time generated syntax you'll need to copy those generated elements on the snippet, given Playgrounds can only depend on the sources in the snippet, and the playgrounds server doesn't run kapt either.
About the different behavior between Ank and playgrounds when it comes to classpath dependencies: Playgrounds can also work incrementally so you don't need to redeclare everything on every single snippet, like Ank does. You can do it with an "incremental" flag but last time I tried random stuff failed, so I'm not completely sure whether that works fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome @nomisRev 🙌 I didn't realize about those details for every modifier. Maybe we could re-organize the content for a better understanding:
language:ank
language:ank:<modifier>
for every modifier in the same order of the table and a note together the table to know that there are details and examples for every modifier
Note: checks are not run for this pull request because they are not necessary for README changes. Just merge when having 2 approvals. Thanks!!
Hi fellow contributor 👋 Arrow repositories has been reunified again into Please, if you want to replay this pull request on
Please, let us know if we can help you! Thank you so much for your contributions!! 🙌 |
No description provided.