Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
siwatanejo
· 4y ago · 0 comments
Why depend on Fable? If something goes wrong, you need to hunt some bug in horrible javascript code. I would still use F# but not Fable.
Comments
[–]
jordanmarr
4y ago
For the same reason that people depend on TypeScript. The JS output created by Fable is fine to read, and I very rarely, if ever, need to look at it.
[–]
siwatanejo
OP
4y ago
Note I advocated to use F# but not Fable. You're assuming in your answer that you need to interoperate with JS, why?
[–]
isaacabraham79
4y ago
Because JS is pervasive.
[–]
isaacabraham79
4y ago
What are you thinking of when you say "something goes wrong"?
[–]
tunaxor
4y ago
When you use better tooling like vite/snowpack the code produced by fable is served as is, and it's really close to the F# sources, the webpack bundle used in development is what looks horrible in reality
[–]
siwatanejo
OP
4y ago
My point was not comparing Fable vs plain JavaScript, but F# vs Fable.