kaxori
06/27/2023, 9:17 AMfloitsch
06/27/2023, 4:17 PMfloitsch
06/27/2023, 4:17 PMTask.group --required=1
would do the trick, but I need to check the source for that. https://libs.toit.io/core/task/class-Task#group(2%2C0%2C0%2Crequired)floitsch
06/27/2023, 4:19 PMTask.group
with --required=1
should work.
@kasperl am I missing anything, or do you agree?kasperl
06/27/2023, 4:21 PMkaxori
06/29/2023, 2:54 PMfloitsch
06/29/2023, 3:03 PMled := ?
into the main
function, since it's only used there anyway.
Otherwise should work as expected. 👍kaxori
06/29/2023, 3:33 PMfloitsch
06/29/2023, 3:34 PMkaxori
06/29/2023, 3:36 PMfloitsch
06/29/2023, 3:37 PMkaxori
06/29/2023, 3:40 PMfloitsch
06/29/2023, 4:07 PMfloitsch
06/29/2023, 4:10 PMreadthedocs.io
but it didn't really fit.floitsch
06/29/2023, 4:10 PMfloitsch
06/29/2023, 4:11 PMkaxori
06/29/2023, 10:08 PMfloitsch
06/29/2023, 10:08 PMfloitsch
06/29/2023, 10:10 PM$
) and that we don't require an empty line for new paragraphs. Instead we indent continuations of a previous paragraph.floitsch
06/29/2023, 10:11 PMfloitsch
06/29/2023, 10:13 PMfloitsch
06/29/2023, 10:13 PMkaxori
06/29/2023, 10:21 PMfloitsch
06/29/2023, 10:24 PMfloitsch
06/29/2023, 10:26 PMkaxori
06/30/2023, 5:51 AMkaxori
06/30/2023, 5:55 AMkaxori
06/30/2023, 6:26 AMkaxori
06/30/2023, 6:26 AMhttps://cdn.discordapp.com/attachments/1123180346096234516/1124224508463681546/image.png▾
floitsch
06/30/2023, 6:42 AMkaxori
06/30/2023, 10:40 AMkaxori
06/30/2023, 10:43 AMkasperl
06/30/2023, 11:37 AM///
introduces a toitdoc comment; see https://docs.toit.io/language/sdk/toitdoc/#syntax.floitsch
06/30/2023, 11:39 AM///
and /** .. */
inside code to get some of the toitdoc features.
Specifically $foo
being a reference to a Toit entity.
This way you could write:
main:
x := 499
y := x + 1 /// Takes $x and increments it.
Would allow to ctrl-click and give warnings if the reference goes stale. (Just like in toitdocs).