Giter VIP home page Giter VIP logo

Comments (6)

rafaqz avatar rafaqz commented on June 17, 2024 1

Yeah const instead.

And we make traits to detect plot axis rather than inheritance like we have now.

We can also make show nicer and not show the Dim{} part most if the time.

from dimensionaldata.jl.

rafaqz avatar rafaqz commented on June 17, 2024

Damn thats a bug with keyword handling maybe.

Btw im thinking to delete the custom dims anyway soon and switch to just Dim...

from dimensionaldata.jl.

bjarthur avatar bjarthur commented on June 17, 2024

oh no! i find the concise syntax of custom dims nice. but, i guess it would be (syntactically) equivalent to define const Foo = Dim{:Foo} instead of using DimensionalData.@dim Foo, right? show would display Dim{:Foo} but programmatically you could still use e.g. fill(NaN, Foo(1:3, order=Unordered())).

from dimensionaldata.jl.

rafaqz avatar rafaqz commented on June 17, 2024

Ah this is just a macro scope issue. Will fix.

from dimensionaldata.jl.

bjarthur avatar bjarthur commented on June 17, 2024

thanks for fixing! but, i'm wondering now whether to use const or @dim. what are the tradeoffs? is there a discussion somewhere on your plan to remove custom dims?

from dimensionaldata.jl.

rafaqz avatar rafaqz commented on June 17, 2024

It shouldn't make much difference - I will just change the macro to create the const definition and it will keep working with very little disruption for most things. I'm hoping e.g. Rasters.jl wont need to do anything with the update even though it uses the @dims macro.

from dimensionaldata.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.