From achambers.home at googlemail.com Sat Oct 24 13:27:39 2009 From: achambers.home at googlemail.com (Andy Chambers) Date: Sat, 24 Oct 2009 14:27:39 +0100 Subject: [cells-devel] mk-row / mk-stack Message-ID: Plaese find below an alternative version of def-mk-inline which means that if the "title" of a row or stack is nil, an unlabelled frame will be created. I modified this because I kept feeling like I was repeating myself with code like this..... (bif (title (maybe-get-title)) (mk-row (title) ....) (mk-row () ....)) With the definition below, I don't have to repeat myself. (mk-row ((maybe-get-title)) ...) What do you guys think? (defmacro def-mk-inline (name (unlabelled labelled)) `(defmacro ,name ((&rest initargs) &rest kids) (cond ((evenp (length initargs)) `(make-instance ',',unlabelled :fm-parent *parent* , at initargs :kids (c? (the-kids , at kids)))) ((null (car initargs)) `(make-instance ',',unlabelled :fm-parent *parent* ,@(cdr initargs) :kids (c? (the-kids , at kids)))) (t `(make-instance ',',labelled :fm-parent *parent* :text ,(car initargs) ,@(cdr initargs) :kids (c? (the-kids , at kids))))))) -- ---- Andy Chambers Formedix Ltd From kentilton at gmail.com Sat Oct 31 15:37:45 2009 From: kentilton at gmail.com (Kenneth Tilton) Date: Sat, 31 Oct 2009 11:37:45 -0400 Subject: [cells-devel] Great idea! Message-ID: <4AEC59C9.9030300@gmail.com> http://coherence-lang.org/Onward09.pdf (thx to Paul Tarvydas for the heads up) Edwards acknowledges Trellis as a temporal predecessor tho he was unaware of it. Mentions Garnet, too. FRP, too. Not sure I like re-running rules to achieve correctness, tho it would be nice not having to record dependencies. Worth noting: not yet implemented. kt -- http://thelaughingstockatpngs.com/ http://www.facebook.com/pages/The-Laughingstock/115923141782?ref=nf