0.8.8 released: prototype support

12 views
Skip to first unread message

Tim Macfarlane

unread,
Jul 31, 2014, 5:11:20 AM7/31/14
to pogos...@googlegroups.com
Hi all,

Some new changes in 0.8.8:

* There is now a built-in "prototype" function that makes it easier to build objects from common prototypes. Have a look at the documentation in http://pogoscript.org/guide/objects.html
* The REPL doesn't crash when it encounters a syntax error - yes about time that was fixed...

Although this was introduced in a previous version I wanted to highlight it now, there is support for ranges now: [1..10].

Tim.

Tim Macfarlane

unread,
Jul 31, 2014, 5:40:05 AM7/31/14
to pogos...@googlegroups.com
Hmm, perhaps a little hasty in that last email: turns out we're on 0.8.9, not 0.8.8, and I forgot to mention an additional syntax for options:

I found myself getting confused about whether to use "=" or ":" in the optional syntax:

    httpism.get "http://api.example.com" (querystring: {q = "blah"})!

Whereas now we also support "="

    httpism.get "http://api.example.com" (querystring = {q = "blah"})!

For those who get confused (like me) the answer is to always use "=".

Both syntaxes are supported, but eventually the ":" syntax will be phased out and we can use it for something more exciting.
Reply all
Reply to author
Forward
0 new messages