Arc Forumnew | comments | leaders | submitlogin
4 points by adm 5664 days ago | link | parent

just a thought..

  > (def isregfile ..)
  > (def isdir ..)
  > (def issymlink ..)
  > (def isdotfile ..)


  > (mac filternil ...)


  > (= goodfiles (filternil (map isdotfile&isregfile (dir "/home/me"))))
  > (= badfiles (filternil (map isdir|issymlink (dir "/home/me"))))
I prefer & over +.


1 point by conanite 5663 days ago | link

Ditto for &

Unfortunately | is reserved in scheme for symbols with special characters, so isdir|issymlink would be hopelessly confusing

  arc> (assign |
  | 10)
  10
  arc> |
  |
  10
Maybe an arc implementation of 'read might overcome this.

-----

1 point by Adlai 5663 days ago | link

Or we could use ^ for disjunction.

-----

1 point by fallintothis 5663 days ago | link

But ^ is the symbol for conjunction, i.e. "and"-ing (well, not the literal caret, but the upwards-pointing symbol -- $\wedge$ in Latex). Did you mean to suggest ^ instead of +?

-----