Coder Social home page Coder Social logo

Comments (2)

laniakea64 avatar laniakea64 commented on July 29, 2024

The difference is on Windows -
https://docs.rs/dirs/5.0.1/dirs/fn.config_local_dir.html
https://docs.rs/dirs/5.0.1/dirs/fn.config_dir.html

one might want to use cache_directory or config_directory for application specific purposes.

You mean something like this? -

foo := cache_directory()
cache_directory := 'mycache'
bar := cache_directory() / cache_directory

Seems to work according to just --evaluate. Or did I not understand the concern?

from just.

teto avatar teto commented on July 29, 2024

The difference is on Windows -

Ha indeed, that's confusing to have a special for windows when xdg is linux. I feel like it should be a different function but if that's what the crate does.

Seems to work according to just --evaluate. Or did I not understand the concern?

You understood well because I have not been rigorous enough, as a developer, I would easily create a cache_directory() function, which would clash with just's function. Also cache_directory() is ambiguous, one could think it's just's config directory. I think xdg_config_directory() would be much more straightforward.

from just.

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.