I came up with a thing in #fsharp today and I am unsure about it. I don't know if it's cute, useless, or useful; I cannot see far enough ahead to understand its implications.
type ErrExn = | Err of DomainError | Exn of System.Exception
This DU unifies domain errors (that are represented in a user-written DU) and exceptions.
I'd expect it to be in a function with a signature of 'a -> Result<'b, ErrExn>.
I don't know if this gives value over separate domain errors and exceptions.
@pblasucci@chethusk@greggyb
"Let it bubble up and crash" is also more in line with #kubernetes and modern #microservices 10 factor app principles.
It's not "crash" though, it is "shut down gracefully"
For a worker #process, graceful shutdown is achieved by returning the current job to the work #queue.
We just shipped v2 Core Framework 2.8.0, Analyzers 1.13.0, and Visual Studio adapter 2.8.0. The primary purpose of this release is a new parallelism algorithm that should make test timing more reliable, and make thread deadlocks in your tests less likely.
In one hand I feel sad that some lovely folks on F# twitter were laid out or their teams were disbanded, on the other hand, I feel that there's certain momentum in the F# community as I see more and more folks getting to try it out and talk about it, perhaps that ocaml popularity boom helped a lot here as well.
We just shipped v2 Core Framework 2.7.1, Analyzers 1.12.0, and Visual Studio adapter 2.5.8. This includes a few new assertion overloads, four new #Roslyn analyzers (and two new suppressors), and a handful of bug fixes.
I want to see if it's possible to replace runtime reflection in @xunit v3 with #Roslyn source generators (for better performance and to support NativeAOT), but I think I've already hit the first blocking point: no support for #FSharp? Only #CSharp and #VB? #dotnet
@bradwilson@xunit instead of Roslyn source generators you can have a regular MSBuild code generator that generates code during the build, and it can be any code and support C# and F# equally well. I often find that people use Roslyn source generators when all they want is any code generator.
For real, whoever is saying that F# or OCaml require a PhD in Math or are languages just for math, science, and academic stuff is completely lying to you, it is no harder than learning JavaScript/python or any other language out there.
Let's talk about Fable, an efficient and productive F# to JavaScript compiler with easy interop to JavaScript code. Discover how F# can benefit your app development! #Fable#FSharp