Re: Platform dependent newline
It's probably compile time. The platform you're compiling for would be the platform you're going to run it on right? Since binaries aren't compatible. So compile time makes sense.
Re: Platform dependent newline
It is still not exactly clear how "\p" works. Is it replaced at compiletime, that is that we would get the CR/LF when we compile on windows? Or is it processed at runtime, so whenever echo sees a "\p" on windows it outputs CR/LF?
Re: Platform dependent newline
Yeah `\p` is the platform specific newline but in most cases `\n` works better since indeed Windows accepts LF everywhere with the exception of some 3rd party applications.
Platform dependent newline
I think 4 or five years ago there was "n" as general newline char that could be two chars for windows and mac? Now there seems to be "p" for that purpose? I missed the detailed discussion. So would we now use "p" generally for terminal output. And "n" only when we want to guaranty that our program can not be used on windows? On the other hand, there where rumors that newer windows versions works with "n"? [https://nim-lang.org/docs/manual.html#lexical-analysis-character-literals](https://nim-lang.org/docs/manual.html#lexical-analysis-character-literals)