You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
With the current Rimu syntax, when you call a function as a block, you pass arguments to the function as a block list.
add
- 10
- 20
This is confusing in two ways:
At the moment, the arguments to the block function is a block. If it's a list, it's presumed to be a list of arguments. Otherwise a single value is interpreted as the first and only argument. Sometimes you pass a value to the block, and it's a list, and you expect that list to be the first and only argument.
The -'s look like minus signs. The visual difference between the dash as a list marker and the dash for a unary negation operator is so small. More difference in the syntax highlighting will help, but still.
Describe the solution you'd like
A new approach would be change how lists are handled.
A list is a bunch of blocks, one after another, on the same level of indentation.
(Or this becomes a new concept: a tuple. And list stays the same.)
Is your feature request related to a problem? Please describe.
With the current Rimu syntax, when you call a function as a block, you pass arguments to the function as a block list.
This is confusing in two ways:
-
's look like minus signs. The visual difference between the dash as a list marker and the dash for a unary negation operator is so small. More difference in the syntax highlighting will help, but still.Describe the solution you'd like
A new approach would be change how lists are handled.
A list is a bunch of blocks, one after another, on the same level of indentation.
(Or this becomes a new concept: a tuple. And list stays the same.)
So
(This is very similar to wisp)
Then the question becomes, what do we do when you want to have two separate lists, one after another?
In wisp, this is handled with the
:
marker.So
???
Open questions
I'm not sure yet, so for now will let the back brain have a think. Unless anyone else has thoughts.
How might this be added to Rimu?
What are possible alternatives?
Additional context
The text was updated successfully, but these errors were encountered: