[PHP-DOC] Re: "The ternary operator"

2011-06-10 Thread Richard Riley
"Ford, Mike"  writes:


> It is. It always has been. That must be Outlook interfering again...! :(
> This message is definitely leaving with the right sig delimiter as
> I've just checked it.
>
> Cheers!
>
> Mike

Worked that time! Possibly a gmane glitch.



RE: [PHP-DOC] Re: "The ternary operator"

2011-06-10 Thread Ford, Mike
> -Original Message-
> From: Richard Riley [mailto:rile...@googlemail.com]
> Sent: 10 June 2011 09:59
> 
> "Ford, Mike"  writes:
> 
> > Having started my documentation career by doing some work on the
> main
> > Operators page,
> > I’d like to introduce a subject that has long bugged me: the term
> > “the ternary operator” to
> > describe ? :
> 
> (Is it my client or your line length setting causing this wrapping?
> I
> dot norally see this above).

Might be me -- as work email is Outlook, that was manually wrapped!

> 
> I came across something similar years ago when reviewing tech docs
> for
> our own language. As a result, I think you would be fighting
> something
> too institutionalised tbh. And the rewards would be minor compared
> to
> the hassle of the petty bickering and inconsistencies introduced
> with
> legacy documenttion and similar constructs in other languages. The
> possibilitey are endless and since there is nothing immediately
> wrong
> or obvious with the current situation I would be tempted to
> concentrate
> on other areas and leave it.

You may be right, but it's bugged me for so long I just wanted to
lay it out on the table and see what happened.

> (as a side note, and not meaning to net nanny ;), your signature
> delimiter should be "-- " and not "--" to enable auto cropping)

It is. It always has been. That must be Outlook interfering again...! :(
This message is definitely leaving with the right sig delimiter as
I've just checked it.

Cheers!

Mike

-- 

Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,  
Leeds Metropolitan University, C507 City Campus, 
Portland Way, LEEDS,  LS1 3HE,  United Kingdom 
E: m.f...@leedsmet.ac.uk T: +44 113 812 4730




To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm


[PHP-DOC] Re: "The ternary operator"

2011-06-10 Thread Richard Riley
"Ford, Mike"  writes:

> Having started my documentation career by doing some work on the main
> Operators page,
> I’d like to introduce a subject that has long bugged me: the term
> “the ternary operator” to
> describe ? :
>  
> Whilst it’s strictly true that, as far as PHP is concerned , ? : is *
> the* ternary operator, that’s
> not really a description of its function, in contrast to most other
> operators which are usually
> referred to by their functionality. It’s also a (very slight)
> potential pitfall should PHP ever be
> moved to introduce another ternary operator (and this *was* proposed
> recently, using ?? :
> or thereabouts to do an isset() test rather than an ==true one!).
>  
> I’d like to consider reworking the docs a bit to refer to ? : as the
> “conditional operator” (or
> perhaps “selection operator ” or “choice operator”), and would like
> to solicit opinions on
> such a move. I realise this is a fairly big departure from past
> practice, and might even be
> regarded in the same light as a BC break, so some reasoned discussion
> would be welcome. I
> also think consideration should be given to moving it out to its own
> , as to me it’s not
> really think it’s a true comparison operator – but this is secondary
> to the main topic of
> changing how its referred to.
>  
> What do you think?
>
> Cheers!

(Is it my client or your line length setting causing this wrapping? I
dot norally see this above).

I came across something similar years ago when reviewing tech docs for
our own language. As a result, I think you would be fighting something
too institutionalised tbh. And the rewards would be minor compared to
the hassle of the petty bickering and inconsistencies introduced with
legacy documenttion and similar constructs in other languages. The
possibilitey are endless and since there is nothing immediately wrong
or obvious with the current situation I would be tempted to concentrate
on other areas and leave it.

(as a side note, and not meaning to net nanny ;), your signature
delimiter should be "-- " and not "--" to enable auto cropping)