https://github.com/Pramod-Devireddy/go-exprtk package does evaluate any 
kind of mathematical expressions dynamically during run-time.

On Tuesday, November 22, 2011 at 3:10:51 PM UTC+5:30 ⚛ wrote:

> On Nov 22, 9:26 am, Jan Mercl <jan.me...@nic.cz> wrote:
> > On Tuesday, November 22, 2011 8:56:25 AM UTC+1, ⚛ wrote:
> >
> > > On Nov 22, 7:12 am, Jan Mercl <jan....@nic.cz> wrote:
> > > > $ godoc -src exp/types BinaryOp
> >
> > > After running the command you suggested, I do not see anything which
> > > would explain the meaning of the panic message.
> >
> > Well, it was not an explanation but a clue how oneself can find the
> > explanation instead of asking N thousands subscribers of this list to do 
> it.
> >
> > godoc shows that BinaryOp will invoke in the type switch case statement 
> the binaryIntOp
> > (http://weekly.golang.org/src/pkg/exp/types/const.go?s=3787:3841#L197)
> >
> > And then on linehttp://
> weekly.golang.org/src/pkg/exp/types/const.go?s=3787:3841#L197is the
> > case clause for token.SHL which has the statement panic("unimplemented").
> >
> > (It's about the "How to *fish instead of giving* the *fish".)*
>
> Well, but there is a difference between a clue and a method. Applying
> a method leads (or at least should lead) to definite results. A clue
> is an incomplete answer.
>
> Then there is also the problem of description accuracy. I would argue
> that "godoc -src exp/types BinaryOp" is less accurate than writing
> "Examine the source code of exp/types/const.go in order to understand
> why the code panics. ...". In my opinion, executing the latter will
> lead to understanding more often than executing the former.
>
> Prior to posting my answer I verified that it actually leads to
> understanding of the cause of the issue Archos was asking about. The
> question is whether you did perform verification on your side, prior
> to posting your answer.
>
> I mean no disrespect. This debate is purely about how to achieve
> better accuracy in an answer to a question.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4e3e69fb-2aa1-4613-b970-37ff16d27c8en%40googlegroups.com.

Reply via email to