unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Perl mode and y=>
@ 2011-09-27 17:51 Mark Tilford
  2011-09-27 19:26 ` S Boucher
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Tilford @ 2011-09-27 17:51 UTC (permalink / raw)
  To: help-gnu-emacs

For some reason, Perl mode behaves oddly whenever it hits the syntax
"y => " (it thinks stuff after that is still quoted), which is used
frequently in Imager (
http://search.cpan.org/~tonyc/Imager-0.85/lib/Imager/Draw.pod#getscanline()
)
I have to replace that with "'y' =>" or "'y', ".  "x =>" or "z =>"
does not cause this problem.

1)  Any idea why?
2)  Could somebody fix this?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Perl mode and y=>
  2011-09-27 17:51 Perl mode and y=> Mark Tilford
@ 2011-09-27 19:26 ` S Boucher
  0 siblings, 0 replies; 2+ messages in thread
From: S Boucher @ 2011-09-27 19:26 UTC (permalink / raw)
  To: Mark Tilford, help-gnu-emacs@gnu.org





----- Original Message -----

> For some reason, Perl mode behaves oddly

Perl is... odd.  I've used perl for a long time with emacs.  You just learn to live with the problems.

Perl's syntax has too many cases of context sensitive interpretations of characters.  It's just hell to make emacs capable to deal with all this.  I suspect Perl is the only software capable of parsing perl code :-)

If it's any consolation, we managed to convince Larry Wall back in the days when perl 5 was being "designed" to not follow Tom Christiansen's idea of what the scope operator should be. Tom wanted the single quote. Most prefered C++'s :: for familiarity and friendlyness to parsers.  If you think things are bad now, imagine having the single quote has the scope operator :-)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-27 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 17:51 Perl mode and y=> Mark Tilford
2011-09-27 19:26 ` S Boucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).