> > In some cases it might make sense to be able to specify coordinates or > other rich data: > > {image:"foo.png", position:[3,7]} > > This argues for making the output document have a type like you > suggested above, e.g., > > {t:'image', data:'foo.png', position:[3,7]}
t for 'type'. Otherwise it would be hard to handle different message types: switch (msg.t) { case 'stdout': ... case 'stderr': ... } vs if (msg.hasOwnProperty('stdout')) { ... - Alex -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org