On Tue, 26 Feb 2002, Aaron J Mackey wrote:

> 2. Inline::SQL would parse the __DATA__ stream looking for function
> prototypes between /* */ C comments (suggestions for other
> syntax/delimiters welcome), followed by sql statements that make use of
> the variable names (i.e. none of this ?, ?, ? stuff); I think this yields
> more readable Perl code [rather than $sth->prepare($name, $id), we have
> set_name($id, $name) ].

Comments are comments to me.  You shouldn't have things that the code 
relies on within comments.  XML deliberatly do this with <!-- this is a 
comment --> and <? this is a processing instruction ?>.

How about some form of enclosing block syntax.  I don't see why one sql 
"block" should be considered to be one statment.  I might want to have
multiple statements in one block.

sql delete_user($name)
{
   delete * from users where name=$name;
   delete * from accesses where name=$name;
}

Later.

Mark.

-- 
s''  Mark Fowler                                     London.pm   Bath.pm
     http://www.twoshortplanks.com/              [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}

Reply via email to