Solomon White

Results 30 comments of Solomon White

I think this is to be expected with short-circuiting. For short-circuiting to work when calculating dependencies, we have to evaluate the predicate so that we know which branch to take....

I think the some of the problem is that functions in Dentaku are implemented in Ruby, so Dentaku is unable to see what _their_ dependencies are. Is it possible to...

Sorry for the delay on this! I pushed up the branch [short_circuit_toggle](https://github.com/rubysolo/dentaku/tree/short-circuit-toggle) that would allow you to disable short-circuit evaluation. Would this solve the issue?

I pushed an initial implementation of this to the [visitor branch](https://github.com/rubysolo/dentaku/tree/visitor).

Yes, these are good suggestions. Regarding PrintVisitor calling `accept` -- my thought was that the visitor needs to control the order of evaluation (e.g. a visitor might want to print...

I think I like the first idea best -- when I have some time I'll work on this a bit more.

Hi, thanks for reporting this. Can you paste a code snippet that shows how you are calling the function? The `sqrt` function is delegated to the ruby `Math` module, so...

Do you mean that it no longer raises any exception, or that it raises a different exception? It should raise a `Dentaku::ParseError` (since ~ v3.4.0) instead of a Ruby `ArgumentError`.

I would approach this by figuring out a way to transform your objects into hashes, and then pass those in as the context data for your formulas. If these are...

Ah, sorry -- I guess that's what you meant by "it wouldn't be practical to generate them all". 😆 Currently Dentaku eagerly flattens hash values into dot-separated keys when storing...