[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Strange Operators (Was: Why I leave Lua)
- From: Sean Conner <sean@...>
- Date: Thu, 10 Jul 2014 01:09:41 -0400
It was thus said that the Great Thiago L. once stated:
>
> >>What other strange operators have been spotted in the wild?
> > ! poke ( effectively )
> > @ peek ( effectively )
> > # divide number by 10 (usually, it can be anything from 2 on up) [1]
> > ' return function address for the named function
> > */ multiply, then divide
> > <> not equal
> >
> > -spc (There are a few more, but they are not operators in the
> > traditional
> > sense ... [2])
> >
> >[1] It does something with the remainder, but describing that takes a
> > bit longer
> >
> >[2] Then again, the language I pulled these from is far from traditional
> >
> Is that FORTH? (pretty sure I've seen */ in FORTH)
Yup. The only language I know where you can define 2 to be anything you
want.
-spc (And the only characters not allowed in an identifier are space and
control characters ... )