Sitelet https://github.com/casey/just/issues/3377
Skip to content

set lists tracking issue #3377

Description

@casey

When set lists is enabled, values may be list of strings, as opposed to strings.

This enables a number of nice features, for example, with set list, quote() applies to each individual argument:

foo *args:
  echo {{ quote(args) }}

So foo a 'b c' will print 'a' 'b c', instead of 'a b c'.

set lists is unstable, both because it's a huge change, and because there are many contexts, mainly the built-in functions, where the ideal behavior of lists is still undecided. Currently, join_list() must be used wherever lists are used in contexts expecting a string.

open questions

  • Should we provide TRUE and FALSE constants?
  • Is show() the right name for the list formatting function?
  • Should exporting [] set the environment variable to "" or skip setting it?
  • Should a + b where a or b is [] be identity?

todo

done

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions