Live data from Hacker News

Fable 3: F# to JavaScript compiler

fable.io

31–40 of 131 posts

Re: Fable 3: F# to JavaScript compiler

#31
post #24
post #17

Earlier quoted context omitted.

Is the term "parenthetical" not common in the UK?

The alternative would be bracketed, I suppose, so it is common.

Wouldn't it just be "in brackets"?

I used to hear that quite often - not so much in recent years, if I think about it, but that may be by chance. I think it is what I would say.

Re: Fable 3: F# to JavaScript compiler

#33
post #19

Earlier quoted context omitted.

what about efcore does it work in f#? or is it bad practice to use mutable code/objects in f#? i do not want to go back to plain sql...

It’s a .Net library so it works (or should work) with F#. What sometimes leads to problems is F#’s record and discriminated union types. Not sure how they are handled by EF Core. Going back to plain SQL is just great. You know exactly what SQL gets executed. No Magic. With DustyTables it’s also not too much boilerplate.

Apparently C# 7 can match discriminated unions quite well[1], with the caveats being:

1. you need a dummy type[2] for empty parts of the union.

2. it still can't enforce exhaustive matching.

[1]: https://stu.dev/pattern-matching-fsharp-union-types-in-cshar...

[2]: Maybe () would work?

Re: Fable 3: F# to JavaScript compiler

#35
post #30
post #23

Earlier quoted context omitted.

I have never ever heard anyone call them that in the UK, they're either brackets or parenthesis to anyone I've ever spoken to - from scientists, to builders, my grandparents all said brackets (Including the one is almost illiterate) I'm sure someone must use it but it's not at all common

I picked up "round brackets", "square brackets", "curly brackets" somewhere during my (Lancashire) youth though generally I only use them now when I encounter somebody confused by parens/brackets/braces as terminology.

I say square and curly, but not round - I'm from Devon, but I'm only 19, so I haven't got the accent.

Re: Fable 3: F# to JavaScript compiler

#37
post #11
post #9

Earlier quoted context omitted.

what exactly do you mean by ‘concurrency’ ? F#’s async workflows are supported. Not sure how this is implemented behind the covers - I guess it get’s compiled to JS promises.

> what exactly do you mean by ‘concurrency’ ? Good point. I guess I meant parallelism instead. https://stackoverflow.com/questions/1050222/what-is-the-diff...

As already mentioned, you can use web workers. Feliz (a React library for F#) provides a nice way to use them [0].

[0] https://zaid-ajaj.github.io/Feliz/#/Hooks/UseWorker

Post reply on HN