Skip to content

Conversation

@dcbaker
Copy link
Collaborator

@dcbaker dcbaker commented Feb 28, 2025

: noted to be invalid on some platforms, notably on Windows. As such, one of the two biggest platform targets for CPS will not support :, and tools targeting both Windows and Linux or MacOS will likely not write the files, given that they would need two separate code paths to do so. Additionally, having a character that is known to not work on some platforms complicates cross compilation with binaries. For example, if a dependency is generated on Linux, then pulled onto a Windows system to do a Windows -> Linux cross compile, A CPS file that was valid on Linux containing a : will not work.

Since there is already an alternative (using -), the most obvious solution is to simply drop : and only use -.

I've pulled this out of the discussion in #79 as an actionable item. I still have other concerns in that issue, but this seems straightforward and easy to resolve.

`:` noted to be invalid on some platforms, notably on Windows. As such,
one of the two biggest platform targets for CPS will not support `:`,
and tools targeting both Windows and Linux or MacOS will likely not
write the files, given that they would need two separate code paths to
do so. Additionally, having a character that is known to not work on
some platforms complicates cross compilation with binaries. For example,
if a dependency is generated on Linux, then pulled onto a Windows system
to do a Windows -> Linux cross compile, A CPS file that was valid on
Linux containing a `:` will not work.

Since there is already an alternative (using `-`), the most obvious
solution is to simply drop `:` and only use `-`.
@bretbrownjr bretbrownjr requested a review from mwoehlke June 27, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant