Giter VIP home page Giter VIP logo

Comments (8)

VladUreche avatar VladUreche commented on June 19, 2024

@lastland yes, it's not yet automated. To be honest, seeing all the bugs MiniboxedFunctions triggered, I think it's best if we leave it that way. Do you think it's too difficult to make the replacements by hand?

Or, maybe, would putting the classes in the scala package directly make it easier?

from miniboxing-plugin.

lastland avatar lastland commented on June 19, 2024

I don't think that it would be more difficult than adding @miniboxeds by hand, but this could not be automated by using the minibox:mark-all compiler option, right?

from miniboxing-plugin.

VladUreche avatar VladUreche commented on June 19, 2024

No, it can't be automated. Now I'm see what you mean, the different transformations are inconsistent:

  • @miniboxed annotations need to be introduced by hand, but can be automated via -P:minibox:mark-all
  • Numeric and the other type classes have to be introduced by hand, but can't be automated via -P:minibox:mark-all
  • Tuple accessors and Functions are automatically converted, and can only be turned off using -P:minibox:off.

I agree this causes confusion. What do you think would be a good approach?

from miniboxing-plugin.

VladUreche avatar VladUreche commented on June 19, 2024

I imagine it could all start from the @miniboxed annotation:

  • Numeric and other type classes are replaced automatically by MiniboxedNumeric and co.
  • Functions are replaced when their type arguments are marked as @miniboxed
  • Tuple accessors are replaced when the two components are marked as @miniboxed

Then, if you don't add any @miniboxed annotation, nothing is changed. If you do, either manually or via -P:minibox:mark-all everything is consistently changed.

What do you think?

from miniboxing-plugin.

lastland avatar lastland commented on June 19, 2024

I agree. It feels most natural from a user's perspective (well, from my perspective 😜).

from miniboxing-plugin.

VladUreche avatar VladUreche commented on June 19, 2024

Thanks @lastland!
How would you feel about moving this to the next milestone? I don't think that I'm able to pull it off quickly and I really want to get to the 0.4 release out the door.

from miniboxing-plugin.

lastland avatar lastland commented on June 19, 2024

Of course. No worries. 😄

from miniboxing-plugin.

VladUreche avatar VladUreche commented on June 19, 2024

Cool, thanks @lastland! I will update the behavior for the next milestone. In the meantime, if you notice any strange behavior/need help getting the miniboxing plugin to do what you want, ask on gitter anytime.

from miniboxing-plugin.

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.