Bug found with incorrect variables

24 views
Skip to first unread message

Matt Habel

unread,
Jan 25, 2012, 8:22:54 PM1/25/12
to last...@googlegroups.com
Not sure if you can view my session from just the url or if it's stored in cookies/localstorage, but if you can, just take a look at that.

Also not sure what's causing it, I was just messing around trying to find out what you meant by describing it as siri-like, and doing some of your examples from the blog.

Ian Clarke

unread,
Jan 25, 2012, 8:36:46 PM1/25/12
to last...@googlegroups.com
Interesting, thanks for the bug report.

"is" a synonym for "=", so here you've actually defined a function with, apparently, nothing to match to the left of the =, causing all kinds of nastiness.

I've fixed the bug by requiring that function definitions must have something on either side of the '=' (duh!).

To answer your question about it being like Siri, while it currently doesn't know how to provide weather reports, or to understand locations, the idea is that users can teach it (although it's not currently capable of this).

Ian.


--
You received this message because you are subscribed to the LastCalc Group
http://groups.google.com/group/lastcalc?hl=en?hl=en



--
Ian Clarke
CEO, SenseArray
Email: i...@sensearray.com
Ph: +1 512 422 3588

Matt Habel

unread,
Jan 25, 2012, 8:55:45 PM1/25/12
to last...@googlegroups.com
Hmm. That's interesting to say. Is there any method to create httprequests or something similar?

Ian Clarke

unread,
Jan 25, 2012, 9:07:18 PM1/25/12
to last...@googlegroups.com
Not yet, but there will be.

I'm thinking about something like:

bitcoin value in usd = get "http://mtgox.com" select "li#weightedAverage span" text

This will retrieve the text in the element that contains the average price of a Bitcoin in US dollars.  Note that "select" allows you to pick out a HTML element using a JQuery-style selector, and then grab the text of the element.  This could then be incorporated into, perhaps, converting between Bitcoins and other currencies.

There will be methods for dissecting HTML as above, and then also manipulating JSON returned from HTTP requests, and maybe other things too.

Ian.

On Wed, Jan 25, 2012 at 7:55 PM, Matt Habel <habe...@gmail.com> wrote:
Hmm. That's interesting to say. Is there any method to create httprequests or something similar?

--
You received this message because you are subscribed to the LastCalc Group
http://groups.google.com/group/lastcalc?hl=en?hl=en

--
Ian Clarke
Reply all
Reply to author
Forward
0 new messages