Andy Chambers | 24 Oct 2009 15:27

mk-row / mk-stack

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))
(Continue reading)

Kenneth Tilton | 31 Oct 2009 16:37
Picon

Great idea!

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


Gmane