Skip to content
This repository was archived by the owner on Aug 23, 2026. It is now read-only.
This repository was archived by the owner on Aug 23, 2026. It is now read-only.

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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