On Mon, 23 Apr 2001 14:57:50 +0200, Davíð Helgason <[EMAIL PROTECTED]> wrote:
> "H.Merijn Brand" wrote:
> >
> > On Mon, 23 Apr 2001 13:22:54 +0100, Simon Cozens <[EMAIL PROTECTED]> wrote:
> > > If postfix "!" was up for grabs - which it probably isn't - what would
> > > you do with it?
> > >
> > > One interesting suggestion was to have it as a shorthand for assertion:
> > >
> > > sub foo {
> > > (@_ > 0)!;
> > > ...
> > > }
> > >
> > > (Or even have ! be a valid statement terminator, so "(@_>0)!" would work.)
> > >
> > > Or you could have it doing something to variables: $a = $b! + $c;
> > > (But what?)
> > >
> > > Fun, eh?
> >
> > DWIM would be "faculty"
>
> yeah, but kinda useless unless when teaching (with) perl.
>
> What about assert (and having just written that, I notice that is
> exactly what Cozens suggested.... So it must be a good idea)?
>
>
> I like it.
>
> When do we get to use unicode operators? (inverse question and
> exclamation marks!!!)
<joking>
I'd personally like to see the plusminus, both as operator and as leading
parameter mark ;-P
if ($a ± $b) { ±c = 1; }
meaning if $a is near to $b (almost the same being defined by $±)
</joking>
--
H.Merijn Brand Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.1 & 623 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/