Skip to content

feat: collection spread/split into arguments #63

Description

@LytixDev

POSIX sh does word splitting by default. Slash should not, and instead word splitting should be performed using an operator. For example "^". Shoud work for strings and maybe tuples and lists as well.

Use case and idea:

var CFLAGS = "-Iinclude -Wall -Wpedantic -Wextra -Wshadow -std=gnu11"

cc $CFLAGS  # will treat the string as one variable which in this case is wrong

cc ^$CFLAGS  # will spread/split the string into multiple arguments

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