Daniel Robinson
Daniel Robinson
Dependency file order is F#'s single most valuable feature for large projects.
This suggestion makes a lot of sense, and makes the language more intuitive/beginner-friendly without taking anything away from more experienced users.
`if let` is basically a single-case `match` without a required `else` or wildcard case. That means `let` behaves very differently when following `if` than it does elsewhere. But I suppose...
> Then still: what would be returned if the `if` test fails? I would assume `unit`, just like `if` without `else` returns today.
Additional use cases would make this more compelling. @vasily-kirichenko's example can already be shortened slightly to `if opts.Id.IsSome then yield opts.Id.Value :> IHTMLProp`. `Option`, like `Nullable`, has only two cases,...
> `if opts.Id.IsSome then yield opts.Id.Value :> IHTMLProp` is not safe. @vasily-kirichenko How is `.IsSome` different than `Option.isSome`?
> I personally think for symmetry `elif` should be supported. I would be deeply confused if it wasn't. > > Also it allows things like this (which is good or...
@gafter Is omitting the type args altogether another option? F# supports the syntax `let d = Dictionary()` for generic dictionary.