PyoungRyang Ko
PyoungRyang Ko
Thank you for the explanation. The receiver notation proves effective when `trueFunc` and `falseFunc` are relatively short, as demonstrated in the following example: ``` (0==0).if({ true }, { false }).postln...
I have primarily utilised variables to eliminate duplicate code; however, in this case, using variables enhances readability and is therefore the preferable approach!
@dyfer We also have ``` if ((0==0), { true }, { false }) ``` There are a variety of ways for one thing. However, I think their readability is not...
>I'd be surprised if C:\Users\[User_Account]\AppData\Local\SuperCollider\tmp would get cleaned by the OS, but a temp folder should be cleaned by the OS. I do not believe that Windows OS automatically cleans...
Then I would suggest changing `Platform.defaultTempDir` as follows - MacOS: `/tmp`. - Windows: `C:\Users\UserName\AppData\Local\Temp`. Would it be acceptable to make these changes? (I see more consistency across all platforms now,...
I think so, but there is one thing to check first. I found a comment: https://github.com/supercollider/supercollider/blob/4f6ba9951a611f319f14a34690cadf7f9fa73804/SCClassLibrary/Platform/osx/OSXPlatform.sc#L80-L87 In #4221, The author wrote: >documentation of Score >changed Platform.defaultTempDir because /tmp is not...
> ```shell > ❯ cat /tmp/mysc > Does it work? > ``` Yes, it works. Also the following works on macOS and Windows: ``` ( ~path = (Platform.case( \osx, {...
>Thanks - do you want to make a PR which changes the defaultTempDir for Windows and macOS then? :) I would be happy to proceed with making a PR to...
Like this? - SCClassLibrary/Platform/windows/WindowsPlatform.sc: ``` defaultTempDir { ^"%USERPROFILE%/AppData/Local/Temp" } ``` - SCClassLibrary/Platform/osx/OSXPlatform.sc: ``` defaultTempDir { ^"echo $TMPDIR".unixCmdGetStdOut } ```
OK, then for macOS: ```supercollider defaultTempDir { var tmp = "TMPDIR".getenv +/+ "supercollider".withTrailingSlash; if(File.exists(tmp).not) { tmp.mkdir }; ^tmp; } ``` I do have a few queries: 1. I have modified...