Stefan Nobis <stefan...@snobis.de> writes: > poverobuosodonati <poverobuosodon...@gmail.com> writes: > > [org-babel-csharp-target-framework] >> I am a bit undecided whether or not it would make sense to expose this >> as a header argument as I understand this to be rather "static" as in >> there might not be a desire to change this from code block to code >> block. What do you think? > > Naturally, I'm not able to imagine all possible use cases. But I would > also assume, that it would be rather unusual to change the > framework/language version from code block to code block (and as far as > I know it would be impossible inside a single session).
Why not? Imagine and Org file for a person learning C# with various unrelated code blocks. As for sessions, there is no session support in this patch AFAIU. Even if there was, we could have multiple sessions. > But I would think a bit about the default value. Maybe it would be nice > to set it to the latest LTS version. But then it would change from time > to time (currently every two years). So maybe just go with the defaults > that .NET uses: If not explicitly stated/configured use the latest > installed version. In this case I think I would set > org-babel-csharp-target-framework to nil as a default value (meaning to > just use the defaults of .NET) but still provide an easy way to > explicitly choose some version if needed. Using defaults makes more sense, yes. Unless C# demands version to be given explicitly. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>