News for hackers. Stuff that matters.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more by codeflo on Sunday May 22, 2022 @10:14AM (#31468379)
Better in what sense? Syntax aside, I don’t see a substantial difference in terms of file content. I do see a substantial difference in terms of tool capabilities (like .NET/NuGet’s inability to resolve conflicting diamond dependencies).
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more by GiorgioG on Sunday May 22, 2022 @10:58AM (#31468891)
As much as I'm not a fan of the XML based project files, the csproj format is much more flexible/capable than package.json files. For example, you may want to have different versions of a package reference based on some condition. Would it be better w/JSON than XML? I think it's a toss-up.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more by codeflo on Sunday May 22, 2022 @12:12PM (#31469694)
That’s a good point. Rust’s cargo files have that feature as well. And I agree that surface syntax isn’t the main issue.
Re:C# 11 Preview Updates – Raw string literals, UTF-8 and more by fomine3 on Monday May 23, 2022 @01:43AM (#31475666)
Lack of comment is a serious flaw for package.json syntax.