Giter Club home page Giter Club logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Sorry but no matter what you do muparserx cannot give you the type information 
you need at compile time. Strictly spoken the return type of muparser is Value. 
In most cases you can't process the value properly without first checking its 
type. You could also get a string or a matrix as the return value (wrapped in a 
Value). The return type is determined at runtime. Templates make their 
distinction at compile time. I don't see how this will fit together very well. 
A get function that is bound to fail at runtime when fed with the incorrect 
type doesn't seem to be of much use either.

I'm leaving the issue open for the moment but i don't see this as a defect. 
This is an inherent part of the design. 

Original comment by [email protected] on 14 Jul 2014 at 9:23

from muparserx.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
In my case the return value is a specific type, otherwise it is an error, and 
it would be convenient if e.g. a Get<int> would do all the error checking and 
if ok return the value of .GetInteger() and throw otherwise, for example. It 
would be even better if the parser knew what type I want to be returned from 
the expression, and throw if the expression doesn't match, but I guess that 
isn't supported.

Original comment by [email protected] on 15 Jul 2014 at 1:46

from muparserx.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Closed since it's more of a feature request.

Original comment by [email protected] on 23 Nov 2014 at 11:18

  • Changed state: Invalid

from muparserx.

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.