lua-users home
lua-l archive

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


It was thus said that the Great Paige DePol once stated:
> On Jul 9, 2014, at 5:36 PM, Michel Martens <soveran@gmail.com> wrote:
> 
> > On 9 July 2014 17:13, Tim Hill <drtimhill@gmail.com> wrote:
> >> Over the years I’ve used .NE. (FORTRAN, yes with the dots), <> with BASIC and dialects, != with C and dialects etc etc. I have no real trouble switching, though I make the odd typo. I’m a little sympathetic to those who point out that tilde is used for “approximate” in many math environments, so it reads a little oddly if you are aware of that. But I don’t think it’s a big deal.
> > 
> > I'm lucky because my default shell is rc from plan9, where ~ is the
> > equality operator :-)
> 
> I think something in my brain just popped, thanks! ;)
> 
> So we have Lua and Matlab's ~= and `rc` from Plan9 using ~ for equality (why, oh why?!).
> 
> 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