On 2/2/06, Frederik 'Freso' S. Olesen <[EMAIL PROTECTED]> wrote:
> 2006/1/5, Isak Savo <[EMAIL PROTECTED]>:
> >2006/1/5, Axel Liljencrantz <[EMAIL PROTECTED]>:
> <zap>
> >> Reasons why I feel and is better than &&:
> >>
> >> * Smaller syntax with fewer special syntaxes
> >> * Easier to learn if you're new to scripting, since you can find out about
> >>it through tab completion
> >> * The syntax is more closely related to the 'if' syntax
> >
> >Good points, although the "easier to learn" point is double sided.
> >Anyone with previous programming/scripting knowledge understands the
> >'and' operator to be, well, an operator and not a command. Having it
> >as a builtin makes it inconsistent with most other
> >scripting/programming languages (which may or may not be a good thing,
> >depending on your design goals)
>
> Python uses "and" and "or" instead of "&&" and "||", just for the
> record, and it really just comes down to a matter of habit, I think.
> :) (Although I suppose it's still an operator in Python and not a
> command.)
> And for people who are used to programming, it shouldn't take much
> effort to replace &&/|| with (; )and/or, IMHO.

Plust, since 'or' etc. are commands, you can meaningfully and
conveniently break command statements:

do_this
or do_that
or do_that


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to