Giter VIP home page Giter VIP logo

Comments (10)

forki avatar forki commented on July 20, 2024

If it's not possible (which is ok) then FSharp.Formatting should propose a way to fill the gap with the docs on the type itself.

from fsharp.formatting.

tpetricek avatar tpetricek commented on July 20, 2024

The F# compiler does not support commenting the default constructor. Handling this in F# Formatting is a great idea. Do you have any preference on how to write this? Perhaps something like:

/// Type comment
///
/// [constructor]
/// Constructor comment
///
/// ## Parameters
///  - `foo` means nothing
type Bar(foo:int) = (..)

from fsharp.formatting.

forki avatar forki commented on July 20, 2024

No please don't add such magic to it. [omit] should be enough magic.

Have to think about it. We should defer this.

from fsharp.formatting.

tpetricek avatar tpetricek commented on July 20, 2024

That's why I'm looking for better ideas :-) better ideas on [omit] are also welcome...

from fsharp.formatting.

forki avatar forki commented on July 20, 2024

There is another "issue".

I like to have a detailed information about a module like this:

image

but I don't want to see all details in the module overview:

image

I assume this can also be done via magic, but...

/cc @Slesa

from fsharp.formatting.

Slesa avatar Slesa commented on July 20, 2024

I wrote that in the comments, just to have the information there. But it'd be better a part of the tutorial.

from fsharp.formatting.

forki avatar forki commented on July 20, 2024

Yep maybe, but there are a couple of other helpers where I have the same "problem".

from fsharp.formatting.

tpetricek avatar tpetricek commented on July 20, 2024

Well, another "magic" is that for the overview, it only picks all content until the first heading. So:

/// Summary
///
/// ## Details
/// More info
module Foo = (...)

... should do the trick. Again, I did this just while I was experimenting with the options. Better suggestions are welcome :-)

The problem is that we generally have to put everything in /// comments - perhaps cross-reference to some other file might work... but that does not feel any simpler.

from fsharp.formatting.

forki avatar forki commented on July 20, 2024

works like a charm.

from fsharp.formatting.

dsyme avatar dsyme commented on July 20, 2024

Closing this old issue (spring cleaning)

from fsharp.formatting.

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.