LytixDev / slash

The Slash Scripting Language
GNU General Public License v3.0
7 stars 0 forks source link

feat: collection spread/split into arguments #63

Open LytixDev opened 1 year ago

LytixDev commented 1 year ago

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