Don Syme

Results 1218 comments of Don Syme

This isn't necessarily a totally bad idea, but it brings "inline" to be closer to macro expansion, which means, for example, that these specific inline functions must actually be applied...

I agree this should be addressed. There are a number of these things that work only for members and not for `let` or vice-versa.

For me it feels that this warning still has a role to play. For beginners, disposability can all to easily be ignored.

Yes, I'm open to discussing this. One problem is that in F# 1.0 we followed C# in allowing default struct initializers for all structs defined using class syntax: ```fsharp []...

Linking https://github.com/dotnet/csharplang/blob/main/proposals/csharp-10.0/parameterless-struct-constructors.md

I've marked this as approved in principle - I think we should do parameterless struct constructors in some form too.

> Or is that meant to be solely executed if the parameterless constructor is called explicitly? Yes, this.

> Part 1 - Compiler emitting specialized ToString for records and unions, I'm ok with approving this though compat may be very tricky. I don't think it needs an RFC....

> Can you please elaborate on this? I somewhat naively thought the only tricky part would be preserving the same indentation. The problem is that in theory the recursive structural...

> Hopefully some shortcuts that result in cleaner code will be allowed, but we probably would need some degree of going into object graphs. I believe none of the string...