Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
latkin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
91.
▲
by
latkin
12y ago
Awesome! Great to see more examples of F# being used in production. Have you considered submitting a testimonial to http://fsharp.org/testimonials/ ? You can actually target iOS and Android today with F#, via Xamarin S
92.
▲
by
latkin
12y ago
Nice F# snippet! This just looks so simple and elegant. As another approach, the "enum" types the OP mentions map to discriminated unions in F#. FWIW your final wildcard match can be (modestly) simplified to just | _ -> nu
93.
▲
by
latkin
12y ago
I once heard an interesting idea to implement not a per-player weight-limit, but a per-team weight limit. The average weight of the Seahawks (my home team) active roster this year is 246 lbs. So, for the sake of example, maybe shave 7-8% o
94.
▲
by
latkin
12y ago
Yep. Most product groups still have individual offices with doors, though new hires are usually doubled with someone else until they have a couple years' tenure. There has been a recent migration toward team rooms in a few high-profile
95.
▲
by
latkin
13y ago
The Seattle F# user group just had an event last night, and the first talk was 1 hour on how to create iOS apps with F# using Xamarin/Mac. If anyone is interested, a recording is at http://www.youtube.com/watch?v=MriHE
96.
▲
by
latkin
13y ago
F# type inference runs left -> right, top -> bottom. In the first snippet, the lambda is encountered first, and the compiler has no knowledge of what the type of "d" is, so it can't assume d has a ".Hour" mem
97.
▲
by
latkin
13y ago
Another option you might want to look at is http://www.tryfsharp.org/Create Runs code locally via Silverlight.
98.
▲
by
latkin
13y ago
The most common way to format code like that in F# would be something like let evenSum = [1;2;3;4] |> List.filter isEven |> List.Sum Using |> is a win for two reasons - code flows more naturally, and the type inferencing wor