Giter VIP home page Giter VIP logo

Comments (4)

MangelMaxime avatar MangelMaxime commented on July 24, 2024

Reading through the article it feels like most of the informations are already presents in Fable documentation with the difference of not being applied to a specific library.

What do you feel is missing?

Personally, I would say perhaps a more applied (macro level) example of how to mix everything together? We could for example take a specific library like dayjs which covers a lot common cases and write a similar step by step, conversion process explaining the decision taken?

As an additional potential ressource, there is also Glutinum specs which can be useful to know how a specific TypeScript syntax should/could be transformed into F#. This is not as friendly as a blog post, will be more exhaustive over time as Glutinum will supports more syntax.

from fable-compiler.github.io.

MangelMaxime avatar MangelMaxime commented on July 24, 2024

To answer your points more specificitly:

It's not as easy to find as it would be if it were in the Fable docs. Newcomers likely don't know it exists.

True

It was written in 2017. I don't know whether there have been later changes to Fable which add more alternatives with different tradeoffs.

Indeed, Fable provides alternatives especially around POJO most importantly [<ParamObject>]
which I tried to explains the why, and tradeoff / backward compatibility.

I also remember that the Interop guide, guide people in a direction to create more like a library on top of the binding instead of a raw binding which exposes an equivalent API as in JavaScript.

It's more verbose than I'd like for a reference (which makes sense - its purpose is to teach, not to be a reference).

Fable documentations contains a TOC which I hoped to be used as a reference table to quickly go to the section that matters for the users.

If you have feedbacks regarding the pages or feels like something is missing feel free to tell me via an issue or PR.

from fable-compiler.github.io.

mattgallagher92 avatar mattgallagher92 commented on July 24, 2024

Thanks for the quick reply Maxime! And thanks in particular for pointing out the Glutinum specs and [<ParamObject>] 🙂

Sorry, you're right; I didn't open the "Features" page. I guess, for reasons that I can't explain, I didn't think that the documentation I wanted would be on that page. Perhaps because it had a different name like "calling JS from F#" in an old version of the docs, and I was looking for that.

I think the docs are good as they are 🙂 sorry for wasting your time 😞

There could be some value in the things that you suggested, such as the applied example, but I don't think it's necessary for now.

from fable-compiler.github.io.

MangelMaxime avatar MangelMaxime commented on July 24, 2024

Sorry, you're right; I didn't open the "Features" page. I guess, for reasons that I can't explain, I didn't think that the documentation I wanted would be on that page. Perhaps because it had a different name like "calling JS from F#" in an old version of the docs, and I was looking for that.

Yes, when doing the rewrite I renamed the page and Features is not a perfect name but allows us to have the same structure for all the targets. Which was a requirement for the rewrite of the documentation.

No worries, always happy to help :)

from fable-compiler.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.