Giter Site home page Giter Site logo

Comments (6)

mb706 avatar mb706 commented on May 25, 2024

unnamed arguments that are not the first argument first should probably throw an error. Not sure about getting rid of c()

from mlr3misc.

mb706 avatar mb706 commented on May 25, 2024

I think making $mget("classif.rpart", "classif.svm") work would be cool, but I know this is the kind of aesthetic judgement that @berndbischl usually disagrees with me on ;-)

from mlr3misc.

mllg avatar mllg commented on May 25, 2024

I can throw an error if any argument in ... is not named to protect from dumb mistakes. But beyond that, it is just sugar and wild guessing what the user meant to do.

from mlr3misc.

berndbischl avatar berndbischl commented on May 25, 2024

Agreeing with Michel

from mlr3misc.

pat-s avatar pat-s commented on May 25, 2024

Ok. Sugar would have been nice here.

Forgetting the c() in mget() is not really a dumb mistake imo but can happen naturally as many functions support this syntax.
What is important here is that we at least thrown an error - what you currently get is an unexpected return instead of an error - this is hard to catch sometimes.

from mlr3misc.

mllg avatar mllg commented on May 25, 2024

You now get an exception if you pass > 1 unnamed args to mget.

from mlr3misc.

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.