Comments (3)
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.
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.
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)
- Update / replace Libz registration for .gz files HOT 3
- The 1.6 update seems to have broken load from URLs for CSVFiles
- Saving output to txt/CSV file? HOT 1
- FIle collision on case sensitive file systems after recent release.
- House AVSfldIO.jl under JulioIO ? HOT 9
- FileIO is not threadsafe HOT 4
- Error in magic function detect_rdata HOT 4
- There was an error in magic function detect_rdata_single HOT 5
- No applicable_loaders found for UNKNOWN HOT 3
- RData can't load .rda files with [email protected] but can with [email protected] HOT 2
- Confusing error when saving the wrong thing
- AstroIO required when it shouldn't be HOT 5
- Too many open files HOT 4
- FileIO not loading / requiring dependency AVSfldIO properly HOT 2
- @maybe macro
- registering zarr files HOT 1
- register Matlab's .mat HOT 1
- Incorrectly export GIF image
- Unhelpful output `#27 (generic function with 1 method)` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fileio.jl.