Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

[perl #53808] elseif should be elsif at blahblah.pl line 103.
# New Ticket Created by  "AVELING BEN"
# Please include the string:  [perl #53808]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53808 >


Hi,



I've just received an error message saying:

elseif should be elsif at blah.pl line 103.



What happened to do-what-I-mean?



Perl is usually pretty forgiving.  In this case, it knows that I should
have typed elsif, so why does it care that I typed elseif?  Why not just
treat it as if I'd typed elsif?



Regards, Ben



--

Ben.Aveling@alcatel-lucent.com.au



Report this thread to moderator Post Follow-up to this message
Old Post
AVELING BEN (via RT)
05-07-08 10:17 AM


Re: [perl #53808] elseif should be elsif at blahblah.pl line 103.
Ben (> ):
>  I've just received an error message saying:
>
>  elseif should be elsif at blah.pl line 103.
>
>
>
>  What happened to do-what-I-mean?
>
>
>
>  Perl is usually pretty forgiving.  In this case, it knows that I should
>  have typed elsif, so why does it care that I typed elseif?  Why not just
>  treat it as if I'd typed elsif?

I'm not sure laxity among keywords would really be a feature.
Correctly spelled, it's "elsif" in Perl, so why allow misspellings?

Allowing "elseif" would constitute having two reserved words pulling
the weight of one. Similarly allowing "whlie", "wehn" and "ulness"
just because it reduces compilation errors, is a bad idea.

// Carl


Report this thread to moderator Post Follow-up to this message
Old Post
Carl Mäsak
05-07-08 01:37 PM


Re: [perl #53808] elseif should be elsif at blahblah.pl line 103.
On 2008 May 7, at 7:21, Carl M=E4sak wrote:

> Ben (> ): 
> I'm not sure laxity among keywords would really be a feature.
> Correctly spelled, it's "elsif" in Perl, so why allow misspellings?

I thought WATFIV proved that this was a really bad idea....

--=20
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




Report this thread to moderator Post Follow-up to this message
Old Post
Brandon S. Allbery KF8NH
05-08-08 12:37 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Perl 6 Compiler archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:02 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.