Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

which is better?

Name: Anonymous 2012-10-15 3:12

print('Hello World')
return_to_ship()
for_each(alert, monsters_in_area)

print 'Hello World'
return_to_ship
for_each {alert} monsters_in_area

Name: Anonymous 2012-10-15 3:28

>>1
The second set.

Name: Anonymous 2012-10-15 3:49

only lisp is acceptable

Name: Anonymous 2012-10-15 4:41

>>2

I'm surprised. But I have to admit that the second has less clutter and is easier to read at a glance.

It might swing once the code becomes more complicated.


item_t complex(algorithm) {
  function(has, lots, of(nested, calls))
  and(things)
  but()
  I(wounder, how(binary + operators + will / show * up))
  return c
}



item_t complex algorithm {
  function has lots of nested calls
  and things
  but
  I {wounder} how {binary} + operators + {will} / show * up
  return c
}

Name: LISPPER 2012-10-15 5:14

>>1,4
(print "Hello World")
(return-to-ship)
(map alert! monsters_in_area)

(define (complex algorithm)
  (function has lots
            (of nested calls))
  (and things)
  (but)
  (I wounder
     (how {binary + operators + will / show * up}))
  c)

Name: >>5 2012-10-15 5:15

(map alert! monsters-in-area)
self-fix.

Name: Anonymous 2012-10-15 5:33

>>5
The lack of ambiguity is refreshing.

Sometimes lisp is light and clear. Other times the parens become more overwhelming than normal.

Name: Anonymous 2012-10-16 5:13

doH <%<= print (map <+> foldr1_ "Hello World") >> do
    return `to` (apM_ (<+++> id) ship)
    forEachUnfoldrM >&*$>
      ((foldr flipM id const id (.).(.)) alert <-^----> monstersInArea)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List