You don’t get what I mean. Before CC workspaces only supported HTML, CSS, JS & Python. But know you can do all the languages that CC teaches except esoteric languages: Emojicode & LOLCODE.
For example if I choose Ruby:
My question was:
Because when I create a workspace it asks me to choose the workspace’s language(s)(template), it only supports the language I choose.
If I choose Ruby as the workspace’s language then can I create a PHP file in there? Or maybe a Kotlin file:
A Kotlin workspace:
what happens if you run it
Which one do I run? _____
The koltin code.js one
It doesn’t give any output.
Ok then it means that the file is code.js.ktm .ktm being the file extention
Your question is a little bit like asking whether you can play a Minidisc on an 8-track cassette deck…
I might want to work with both Kotlin and PHP. Well no. But in another sense.
I want a C# oriented workspace to support also Python and C++. If workspaces weren’t language specific(not oriented) than I could just put more than one language in my workspace.
Yes, but why?
If your demand is based solely on convenience, it’s not exactly difficult to create a new workspace for each random idea that crosses your mind. (No more difficult than it has been for me to create a new REPL for them over the years…)
Workspaces shouldn’t have to be based on a template language. It shouldn’t make you choose the language and instead let you create files of any language supported at CC as I want.
…then how do you propose handling the necessary “back end” required to make the workspace run? If you’re writing Kotlin, you need a Kotlin compiler. If you’re writing C#, you need a C# compiler and an appropriate .NET Framework. If you’re writing C…
This isn’t so different to, for example, having to tell Visual Studio which language you intend to be writing in so it can initialise the appropriate components to support your project.
If you want to be able to mix and match languages, maybe you should be looking at setting up your own environment?
Just like in Visual Studio Code.
Yes but the compiler can be based on what file extension. Why can’t CC Workspaces just not use a language template and just give you a compiler depending on what file extensions of the files you make. This is like VS Code.