Remix.run Logo
picometer 2 days ago

The code block after "Welcome" is the code sample. Very literate.

graypegg 2 days ago | parent | next [-]

Is it meant to do something? It doesn't follow the same cause/effect syntax as the tutorial, and plopping that welcome block into https://playground.nova-lang.net/ doesn't seem to do anything. I assume it's the note taking part of the syntax?

casuallyblue 2 days ago | parent [-]

Its not necessarily meant to do anything on its own. The text there is the same cause/effect syntax, just with slightly different delimiters. If you were to include the fact it needs to execute for the rule to work on after the code, like: "|| - Welcome to Nova! -", then the rule would execute.

graypegg 2 days ago | parent [-]

OH! Ok that makes more sense. `:` from the tutorial is `-` or `~`, because it's the first char after the pipe.

I do lose track after that though, in my brain, It looks like the entire second part after the second pipe character should be just one long fact assigned to the stack between tildes, but I think it's adding each one of the bullet-prefixed lines to it.

yumaikas 2 days ago | parent | next [-]

That is one of a couple syntactical shorthands, explained a small bit here: https://nova-lang.net/introduction-to-nova/sight/#sometime-y...

casuallyblue 2 days ago | parent | prev [-]

yeah, the "." is a syntax for putting multiple things on the same stack

[0] https://nova-lang.net/introduction-to-nova/sight/#sometimes-...

macintux 2 days ago | parent | prev [-]

A caption for that sample, indicating it is one, would help.