GithubHelp home page GithubHelp logo

Comments (3)

johnnychen94 avatar johnnychen94 commented on May 23, 2024 2

I like this idea, I think we can deprecate the single-positional-argument method in favor of a manually written one data->save(f, data). But this takes time to proceed and I don't know how others feel about it.

In the meantime, adding a non-exported symbol kwsave seems okay to me. When the deprecation finishes, we can deprecate kwsave in favor of save.

from fileio.jl.

timholy avatar timholy commented on May 23, 2024 1

I recognize it's useful functionality, and we should keep it. But it's undocumented behavior of FileIO.save and it doesn't really fit with any Julia standard elsewhere (neither the "omit an IO object and fill in a default" nor the "first argument is a function which you can define via a do block"). I think we could call this something new, maybe writer, to hint that it returns a function that writes data? Or might savestreaming already solve that problem in a more conventional way?

from fileio.jl.

davidanthoff avatar davidanthoff commented on May 23, 2024

I think we can deprecate the single-positional-argument method

This is very heavily used in queryverse. The entire file IO story revolves around this pattern, so I would be very, very opposed to this :)

from fileio.jl.

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.