Giter Site home page Giter Site logo

Comments (10)

jacob-carlborg avatar jacob-carlborg commented on June 22, 2024

Why, I like to have a space there?

from dstep.

joakim-noah avatar joakim-noah commented on June 22, 2024

It's non-standard formatting for D code, as you can see in druntime.

from dstep.

jacob-carlborg avatar jacob-carlborg commented on June 22, 2024

As you can see in druntime and Phobos, there really is no standard.

from dstep.

joakim-noah avatar joakim-noah commented on June 22, 2024

While there are no doubt uses of the space here and there, the vast majority of function declarations, something like 97%+, don't use one. That's fairly standard.

from dstep.

ciechowoj avatar ciechowoj commented on June 22, 2024

What about adding a command line switch to control that behavior? E.g. --no-space-after-func.

from dstep.

mihails-strasuns avatar mihails-strasuns commented on June 22, 2024

That really isn't dstep job. I'd suggest to embrace UNIX way and stick to one formatting style (whatever it is) suggesting anyone who wants a different one to pipe resulting output through dfmt ;)

from dstep.

jacob-carlborg avatar jacob-carlborg commented on June 22, 2024

Actually, I don't mind changing the format of the output. I've changed my mind and is starting to use the style without the space in my own code.

from dstep.

ciechowoj avatar ciechowoj commented on June 22, 2024

Well, so I'll assume that there is no point of adding switches to control the formatting to DStep (however we could change the behavior to not to place that space after function name, I prefer that variant more too).

from dstep.

ciechowoj avatar ciechowoj commented on June 22, 2024

And there might be problem with pipeing the output to the other program, as DStep doesn't print its output to stdout and what is more it can output multiple files...

from dstep.

jacob-carlborg avatar jacob-carlborg commented on June 22, 2024

And there might be problem with pipeing the output to the other program, as DStep doesn't print its output to stdout

That can be improved.

what is more it can output multiple files...

You can run dfmt after DStep has written the files 😉

from dstep.

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.