task icon indicating copy to clipboard operation
task copied to clipboard

Add joinEnv and joinUrl string functions and 2 new system vars

Open solvingj opened this issue 3 months ago • 2 comments

Add two new system variables which map directly to platform specific go constants:

  • PATH_LIST_SEPARATOR -> os.PathListSeparator
  • FILE_PATH_SEPARATOR -> os.PathSeparator

Add joinEnv string function which is sibling to joinPath:

  • strings.Join(elem, string(os.PathListSeparator))

Add joinUrl string function which is sibling to joinPath:

  • path.Join(elem...)

Add all to docs

closes #2406

solvingj avatar Sep 03 '25 02:09 solvingj

Up to @pd93 and @andreynering I suppose.

solvingj avatar Sep 13 '25 03:09 solvingj

For these variables, you need to define them in getSpecialVars inside compiler.go

Ah, of course, moved...

solvingj avatar Nov 05 '25 14:11 solvingj

@solvingj the lint is failing. Do you still want to work on it?

vmaerten avatar Dec 12 '25 21:12 vmaerten

Yah I can fix it tomorrow. Just to confirm, are you sure you want to merge it?

solvingj avatar Dec 20 '25 00:12 solvingj