Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Metasyntactic
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
Metasyntactic
3y ago
Hi there! I'm a developer on the .Net team, and I heavily work on our IDE offerings. You can absolutely write a small program that is only a CLI, and our tooling is heavily tailored to make that a great experience. First off, you do
32.
▲
by
Metasyntactic
3y ago
Hi there. I'm the language designer who created the 'Collection Expression' design/specification: https://github.com/dotnet/csharplang/issues/5354 You can see the entire history of the pr
33.
▲
by
Metasyntactic
3y ago
Hi there, C# Lang Designer here. :) We're always thinking about the bloat concern when it comes to language development. However, our philosophy on it is that bloat primarily comes when you add replacement systems that are expected to
34.
▲
by
Metasyntactic
4y ago
Hey there! Language designer of Raw Strings here. The use of whitespace to affect the meaning of strings was actually a big ask from the community and was due to a lot of confusion and frustration over the years from customers who didn
35.
▲
by
Metasyntactic
5y ago
> (What happens if the closing quotes pass some of the text?) That's an error. Called out here: https://github.com/dotnet/csharplang/blob/main/proposals/raw...
36.
▲
by
Metasyntactic
5y ago
>And the code sample you show differs only in that closing quote isn't indented. You don't explain why and how that change would affect the generated string. Hi there. This is explained in the spec in a few places. In the exa
37.
▲
by
Metasyntactic
5y ago
> I just really dislike reasoning about trimming the leading whitespace Note: this feature is entirely optional. You can absolutely not have leading whitespace trimming at all. Indeed, this is a requirement of the proposal as we have t
38.
▲
by
Metasyntactic
5y ago
Hi, I'm one of teh C# language designers, and I work on the compiler implementation as well. C# has never had a "simple tokenizer". Indeed, even the first language has complex lexical constructs that are part and parcel of t
39.
▲
by
Metasyntactic
5y ago
Hi there! I'm the lang designer and i wrote up that spec. Could you clarify what you didn't understand about the indentation examples? I can work on clarifying them. Thanks!
40.
▲
by
Metasyntactic
5y ago
Hi there! I'm one of the C# language designers. I'm working on a proposal for that right now: https://github.com/dotnet/csharplang/issues/5354 Thanks!
41.
▲
by
Metasyntactic
5y ago
Hi there, I'm the lang designer and implementor here. That would violate a core goal of the feature which is that the content itself doesn't need escaping. This sort of approach would require all users to have tooling that would
42.
▲
by
Metasyntactic
5y ago
Hi, i'm the lang designer and implementor here. We absolutely do not normalize newlines as that would defeat the purpose of raw literals. The point here is that your content is not interpreted as that's the pain area that peopl
43.
▲
by
Metasyntactic
5y ago
Hi. I'm the lang designer and feature implementor. To your question of "why?", we tried to cover the reasoning in teh proposal. But, the core reason is that today people do use strings a ton. And in many cases it's un
44.
▲
by
Metasyntactic
5y ago
>Now we're adding {{ and }} into the equation. Yay. Hi, i'm the lang designer and feature implementor here :) The complexity of lexing/parsing did not get worse here. We actually just lex/parse this stuff the same wa
45.
▲
by
Metasyntactic
5y ago
Hi, I'm the lang designer here. We looked into this. However, there didn't seem to be any benefit to this above just the N-quote version (which fits into how C# does strings everywhere else). In the above case, the `SQL(` and `)
46.
▲
by
Metasyntactic
5y ago
> but can't they use a symbol before the string like they do with interpolation `$` or literals `@`? Hi! I'm the language designer here :) I know it says design decision to go with 1 more " than the longest sequence of &q
47.
▲
by
Metasyntactic
5y ago
Hi. I'm the language designer behind this feature :) A few points. > but the following would generate the same string, since each line begins after the """: That's not a virtue here. The point is to be able to
48.
▲
by
Metasyntactic
5y ago
Hi. I'm the designer of this feature. The reason for this is so that we can potentially have fenced string blocks in the future. for example: ```c# var s = """xml <Book><title/><&#x
49.
▲
by
Metasyntactic
5y ago
Hi. I'm the designer of this lang feature. The specification covers this. However, to be clear, neither new line after the first `"""` is not part of the literal, nor is the newline before the last `"""
50.
▲
by
Metasyntactic
5y ago
FYI, i work at MS (on a compiler team). The work-life balance is fantastic. I'm not sure where you got the idea that that isn't so. Thanks! :)
51.
▲
by
Metasyntactic
6y ago
> it bothers me that the keyword in the class declaration is "data" The keyword is the declaration is `record`. So you would write your record: record Person(string FirstName, string LastName); Source: I am one of the
52.
▲
by
Metasyntactic
10y ago
> but hypothetically this is the kind of thing that could have an impact It's not hypothetical :) We've measured, and moving to 64bits is a serious issue and would directly affect many customers who could not take the RAM h
53.
▲
by
Metasyntactic
10y ago
> are you satisfied with this solution? Yes. This approach allows for far more interoperability in this space. Instead of having language features be locked into specific compilers/toolsets. You mentioned 'simplicity' a
54.
▲
by
Metasyntactic
10y ago
> So with c# 7 all I need is VS 2017? All you really need is the new C# compiler. You can get that with VS2017, or standalone. But the programs produced by this compiler should be runnable on pretty much every runtime out there. >
55.
▲
by
Metasyntactic
10y ago
Hi Xorblurb :) I'm a dev on the "IDE team" :) We've actually done a huge amount of work investigating and addressing perf issues and working to create an architecture that can scale well. 64bits is not a panacea. And i
56.
▲
by
Metasyntactic
10y ago
Hi Douche, I'm Cyrus, a developer on the C#/VB IDE team. One of the areas we invested a lot in (and will continue working on) is moving a lot of our analysis and processing work out-of-process. It turns out this is a much effecti
57.
▲
by
Metasyntactic
10y ago
Hi CM, i'm Cyrus, a developer on the C#/VB IDE. First: The benefit of this approach is that people can now use this sort of feature down-level. i.e. you can interoperate with this code even if you're on a previous version of
58.
▲
by
Metasyntactic
10y ago
Hey DMarlow, could you clarify your question? A C# 7.0 program should run on pretty much any version of .Net after 2.0. Similar to C# 2.0-6.0. The only thing we ever really adopted in C# that needed a new runtime version was Generics.
59.
▲
by
Metasyntactic
10y ago
Hi CM2187. Can you file these bugs over at https://github.com/dotnet/roslyn We can take a look and hopefully get fixes out for you soon!
60.
▲
by
Metasyntactic
10y ago
Hi Eitland! I'm a dev on the C#/VB IDE experience (and i've written and maintain many of the Refactorings for those languages). C# and VB do support refactorings like 'Extract Method' and 'Move to Separate Fil
More ›