Skip to content

Deleting commas in parameter lists makes one-line function args hard to read #50

@TLATER

Description

@TLATER

This is deliberate, but I think the result is not very readable:

@@ -1,6 +1,6 @@
 use std/log
 
-def main [interface_arg: string, action_arg?: string] {
+def main [interface_arg: string action_arg?: string] {
   let action = $action_arg | default $interface_arg
   let interface = match $interface_arg {
     none => null

I don't mind this for long parameter lists that are spread on multiple lines, but for these kinds of mini-functions with self-explaining args in little scripts I would really like to keep my commas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions