Arc Forumnew | comments | leaders | submit | chaos's commentslogin
1 point by chaos 6133 days ago | link | parent | on: Poll: Where are you from ?

Switzerland +1 :)

-----


Scala

-----

3 points by chaos 6171 days ago | link | parent | on: Opinion Poll - Arcists thought on Prolog

My thoughts on Prolog:

Why, oh why, didn't I take Werner Hett's (aka Mr. Ninety-Nine_Prolog_Problems) Prolog/logic programming course when I had the opportunity. :/ Maybe then I could actually judge the language.

When used in small doses (and I think that's how it would be used, when embedded in other languages) it can be incredibly elegant, readable and short.

-----

2 points by chaos 6172 days ago | link | parent | on: We Have Docstrings

oh? Maybe I should read the diffs a bit closer.

-----

3 points by chaos 6173 days ago | link | parent | on: This is probably a really bad idea.

Revision 12, synchronized with git and added a simple bayesian classifier.

-----

5 points by chaos 6173 days ago | link | parent | on: This is probably a really bad idea.

heh, thanks :) I'll put them in next time.

-----

3 points by chaos 6173 days ago | link | parent | on: let and with

There is also withs:

    (withs (x 1 y 2) (withs (x y y x) (list x y)))

-----

2 points by chaos 6173 days ago | link | parent | on: Er.. can't install?

as.scm, not ac.scm

   mzscheme -m -f as.scm

-----

1 point by godtvisken 6173 days ago | link

Heh, such a silly mistake. Thank you

-----

2 points by chaos 6173 days ago | link | parent | on: Show us your Arc code

Maybe I'm the last one to notice withs as let* replacement, maybe not.

Simulated Annealing: http://dpaste.com/hold/33337/

-----

3 points by chaos 6174 days ago | link | parent | on: How to define f with 0 args?

    (def foo () 'bar)
    (foo)
or

    (fn () 'bar)

-----

More