Arc Forumnew | comments | leaders | submitlogin
4 points by almkglor 5681 days ago | link | parent

from my lurking, pg has not posted the actual fix to the Arc community.

Since I'm not touching Arc, here's a sketch of what I believe is the problem:

http://news.ycombinator.com/item?id=519521

In the above link, pg describes the problem as being in the fact that he was using "a four variable list to destructure on a five value description of the field."

http://github.com/nex3/arc/blob/8112c99e0cd6f41850910e7c359e...

The above bit of code appears to be the "five value description". It's a function creating a data structure specifically for the particular user and post, making some data showable/not showable and modifiable/not modifiable.

The only time that this particular variable is used is in calls to a 'vars-form function. This function is in app.arc <insert snarky comment about badly disorganized code here>:

http://github.com/nex3/arc/blob/8112c99e0cd6f41850910e7c359e...

The specific "four variable list" appears to be the following line:

http://github.com/nex3/arc/blob/8112c99e0cd6f41850910e7c359e...

The succeeding line has a "(and mod v)" line, which might be correctly "(and mod valid)", where valid is the missing variable in the destructure. <insert snarky comment about pg's Arc-community-building skills here>



1 point by ambition 5674 days ago | link

When investigating for hnacademic.com I came to the same conclusion you did.

Here's the modified code I used on hnacademic.com:

                         (let (typ id val view mod) it
It works, at least for the published crack.

-----