menu paradigm of Rev/MC and other goofiness -- like quotes

Ivers, Doug E Doug_Ivers at lord.com
Thu Feb 27 08:40:02 EST 2003


That helps, but look how much easier this is to read and debug:

   put "I said, 'Let's go!'"


-- D



> -----Original Message-----
> From: Richard Gaskin [mailto:ambassador at fourthworld.com]
> Sent: Monday, February 24, 2003 6:27 PM
> To: use-revolution at lists.runrev.com
> Subject: Re: menu paradigm of Rev/MC and other goofiness
> 
> 
> Ivers, Doug E wrote:
> 
> > My point is that there are areas of  hypertalk that require 
> more coding and
> > are more prone to errors than should be.  I hope that the 
> MC/Rev developers
> > are open to discussing these topics and providing 
> improvements in the
> > language.
> > 
> > Menus and nested quotes stick out in my mind.
> 
> Here's a lil' gem that's radically simplified a lot of my code:
> 
> function q s
>   return quote& s &quote
> end q
> 
> 
> To call it:
> 
>   put "I said, "& q("Let's go!")
> 
> ...as opposed to:
> 
>   put "I said, "& quote&"Let's go!"&quote
> 
> 
> A small improvement, but a but more pleasing to the tired eye. :)
> 
> -- 
>  Richard Gaskin 



More information about the use-livecode mailing list