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

RE: [FWP] Fun with terminology



> From: Peter Scott [mailto:Peter@PSDT.com]
> Sent: Thursday, October 28, 1999 14:08
> To: fwp@technofile.org
> Subject: [FWP] Fun with terminology
>
>
> Dang, hate it when I hit the wrong control key :-(
>
> Okay, in Perl we have prefix operators (e.g., $ @ % & dereferencing);
we
> have postfix operators (e.g., ++ --), and we have infix operators
(e.g., +
> - * / ->).
>
> So what do you call <> (glob or getline?)  Outfix?

TomC calls them 'circumfix'.  I  didn't find an example in the docs,
though.  But here's an example from Deja.com:

Subject: FMTEYEWTK on Prototypes in Perl
Date: 1999/07/21
Author: Tom Christiansen <tchrist@mox.perl.com>

...

Another undesirable consequence is that it thrusts you fully into the
quandary of not knowing whether to expect a terminal or not.  That means
that several tokens, such as "<", "<<", and "/", all become ambiguous.
The "<" could be the binary infix numeric less-than operator, or it
could be the left-hand component of the circumfix readline operator.

...

--
Larry Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com



==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe