Phillip Carter

Results 640 comments of Phillip Carter

> The existing way of approaching this problem in F#... is manually write out the constraints every time Actually, you can use an active pattern for this: ```fsharp // constraints.fs......

I don't think that matters here. My comment is about an existing solution to the problem identified, not about providing an exact way to do what the original issue is...

Regarding this point: > There are already two ways of doing this, so adding a third would be undesirable. Ideally, this would replace the C# interop version by deprecating it....

So this is really a tooling concern and not a language concern, but it would need to include an attribute in FSharp.Core to limit whatever is in a completion list...

@daniellittledev would you like to contribute? I'll happily review

I haven't seen a similar suggestion, though I'd be surprised if this hasn't been brought up before... ...regardless, I think this would be great. It's very surprising to me that...

> And you were talking about .NET Framework. I guess this has changed with .NET Core. I would expect none of that to change with .NET Core, at least for...

@abelbraaksma Currently, these are the rules: > If the type is a named type, then the type definition does not have, and is not inferred to have, the `NoComparison` attribute,...

Given the number of reports this is clearly a pattern people are trying to do and would just expect to work, so this should just get done.

Links the [archive issue for this](https://github.com/fsharp/fslang-suggestions/blob/d48c35ce216e2bff148937ec028ad61e5c273fdf/archive/suggestion-6923281-add-possibility-to-use-break-and-continue-in-f-l.md) for posterity.