Arc Forumnew | comments | leaders | submitlogin
Arc presentation (google.com)
17 points by conanite 3065 days ago | 10 comments


5 points by pg 3064 days ago | link

In the latest (soon to be released) version

    (aif ((foo 'bar) 'name)
         (print it))
would be

    (only.print foo!bar!name)
assuming print is some function you defined yourself, and you don't mean pr.

-----

1 point by conanite 3063 days ago | link

"warning: future releases of arc are likely to break all of your existing presentations"

I'll find another example so.

assuming print is some function you defined yourself, and you don't mean pr.

is this because only only takes 1-arg functions? Something like

  (def only (f)
    (fn (arg)
      (if arg (f arg))))

?

-----

1 point by andreyf 3064 days ago | link

Hm, you seem to use the . notation as Python uses decorators, but chaining multiple decorators has a very different effect. In python, I'd expect foo.bar.3 to be (foo (bar (3))). In Arc, it seems to do (foo bar 3).

-----

1 point by CatDancer 3064 days ago | link

This will be fixed in the next release of Arc (http://arclanguage.org/item?id=9163)

-----

4 points by drcode 3064 days ago | link

good job- I think it really gets the point across in showing the value of macros to a blub programmer.

-----

2 points by conanite 3065 days ago | link

These are the slides for an arc presentation I gave today at xpday france - http://xpday.fr/

I hope they represent arc reasonably well. There's a slight rainbow bias, and a lot of blub-bashing.

enjoy, and feel free to re-use parts you like.

[edit: the slides are in english]

-----

1 point by sacado 3064 days ago | link

How was it perceived at xpday ? Did people seem to like Arc's ideas ?

-----

2 points by conanite 3063 days ago | link

Various languages were represented in the audience. Generally, python and erlang users were less impressed; but users of java and other blubs found a new way in which their language was inadequate :)

Some were concerned about unreadability, and others dismissed arc as impractical, but overall I think people seemed to appreciate the power macros can bring to a language, and how hopeless the situation is for java et al, given their heteroiconicity.

-----

1 point by sacado 3061 days ago | link

OK, thanks :)

-----

1 point by sacado 3064 days ago | link

excellent !

-----