lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


for a perl monger  ~=  is nothing like != (it's a syntax error) as =~
is the match regexp operator.
For a C fellow ~ is one complement's so "a ~= b" is like a to become 
b's one complement to a.
-- comments remind me asn1 (like MIBs) so I can easily live with it.

On 1/25/06, mnewberry <mnewberry@mirametrics.com> wrote:
> Ben,
>
> For my part, I am not asking anyone to turn Lua into C/C++. I'm suggesting
> small changes to syntax to make it more consistent with how we already
> think. It is amazing how little nits like -- versus //  or ~= versus != can
> make something easy to use or an annoyance to use. If the vast majority of
> people using Lua come from the C/C++ lineage then they're going to find the
> current syntax a nuisance.
>
> Michael
>
>
> On Wed, 25 Jan 2006 10:54:01 -0800, Ben Sunshine-Hill wrote
> > On 1/25/06, Walter Cruz <walter.php@gmail.com> wrote:
> > > What about a switch statement too ?
> > >
> > > Sometimes is boring put if, else if, else if, else if :)
> > >
> > >
> > > []'s
> > > - Walter
> > >
> >
> > Yeah! And pointers, and pointer arithmetic, and a "transpose"
> > operator and a "complex conjugate" operator, and partial template
> > specialization. Ooh, and a weeird operator that sometimes tells you
> > the length of a string and sometimes tells you the size of an array
> > and sometimes doesn't.
> >
> > Er, forget that last one. I don't think they'd go for it.
> >
> > Ben
>
>
>
>
>


--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan