Code Monkey home page Code Monkey logo

Comments (4)

dungpa avatar dungpa commented on July 21, 2024

I'm not sure I understand your intention.

Isn't it the job of F# type checker? If you need that information, you could use --sig option in F# compiler or copy type signatures from F# Interactive.

Could you provide an example and show a use case?

from fantomas.

 avatar commented on July 21, 2024

I think the intention is to support sutomatically adding type annotations to the text of source code files according to some policy, e.g.

 let f x y = x + y 

becomes

let f (x:int) (y:int) : int = x + y

But agreed this doesn't fit with the current tool very well, which doesn't invoke the type checker.

from fantomas.

dungpa avatar dungpa commented on July 21, 2024

I don't think we should support this either. It requires a lot of change wrt current implementation.

from fantomas.

EricGT avatar EricGT commented on July 21, 2024

Hi Phan and Don,

Don gave a correct example. I just put this out there so we could discuss
it and reject it if it was not practical for this project. I added as a
request because if Fantomas could do it, it would be nice, but also because
others might have the same idea and would could have in on record why it
was rejected.

Thanks, Eric

On Wed, Apr 17, 2013 at 6:03 AM, Anh-Dung Phan [email protected]:

I don't think we should support this either. It requires a lot of change
wrt current implementation.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-16497259
.

from fantomas.

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.