Giter Club home page Giter Club logo

Comments (3)

ii8 avatar ii8 commented on June 5, 2024 1

Oh, indeed smlfmt < a.sml > b.sml works but using smlfmt > b.sml and pasting doesn't, that's why I thought it doesn't work in general.

It just seemed a bit strange to me, but if you don't think it should be changed this issue can be closed.

from smlfmt.

shwestrick avatar shwestrick commented on June 5, 2024

smlfmt does accept stdin/stdout:

cat a.sml | smlfmt > b.sml

# or, alternatively:
smlfmt < a.sml > b.sml

One nice thing about the in-place-by-default behavior is that it's consistent between .sml and .mlb input. And, in-place updates seem like they would be the common case for a tool like smlfmt. (This is certainly the case for me, but not sure about other people.)

Honestly I don't have a super strong preference either way, but I'm a bit wary of changing things.

from smlfmt.

shwestrick avatar shwestrick commented on June 5, 2024

Okay sounds good! For now, I think I'd prefer not to change it, just in case someone is relying on the existing interface.

I'll keep in it mind though; if we need to make a backwards-incompatible change in the future anyway, then perhaps this can be changed then too.

from smlfmt.

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.