Jared Hester

Results 37 comments of Jared Hester

I hope this won't be limited to `get_Prop()`, I find myself writing ``` fsharp fun (str:string) -> str.Split ... ``` and many other similar lambdas to use instance methods far...

This is one of the features I've wanted to reach for over and over again, and tried without being able to find a satisfactory solution. Phantom types, struct wrappers with...

Maybe [playing fast and loose on the stack](https://github.com/devshorts/ParsecClone/blob/master/Combinator/ByteUtils.fs#L46-L105) could kick it up a notch? [(was based on this)](https://github.com/devshorts/ParsecClone/blob/master/Combinator/ByteUtils.fs#L46-L105) We could see if it can combine well with `NativePtr.stackalloc

Have you been inspecting the differences in the generated IL?

can you post the results? there should be a gh-flavor `.md` file in the `/bin`

Yea it was originally in C#, but I took a look at it and knew I could rewrite it in F# :grinning:

Did you see a big difference in the decompiled source of sum, map2, or map3 using the recursive implementation and the while loop? Is there something happening for the map...

``` fsharp let inline private getLeftovers (array: ^T []) (curIndex: int) : ^T Vector = let mutable vi = curIndex let d = Unchecked.defaultof< ^T> let leftOverArray = [| for...

@Richiban is this what you're looking for? - [Polymorphic Variants](https://github.com/fsharp/fslang-suggestions/issues/40)

sticking with `->` leads to situations like ``` fsharp let fn x y = match x with | 1 -> z -> x + y * z | _ ->...