Given a French keyboard where ~#{}[]|`@
are all accessible only through Alt-Gr would you have designed Perl the same way or would you have gone more in the direction of Python or Ruby? All those sigils do tend to be extremely ASCII-keyboard centric.
In answer to the question, I'd say that the answer is probably that they would have been different. Think back to early unix commands being very short due to input device limitations (teletypes were too slow for long commands).
-Dom
So all those characters are missing, but $ is there? Odd. Sounds like American imperialism to me.
Re:taper a` la masheen
darobin on 2003-04-10T09:09:43
Oh, you mean that's what pair programming is about?
Re:ASCII 0wn3z 70u
darobin on 2003-04-10T09:00:52
That's not the point. There's nothing preventing me from using a speech to text engine either. It's a question of the influence on language design.
Re:ASCII 0wn3z 70u
belg4mit on 2003-04-10T14:42:09
It is the point, reread the first sentence.Re:ASCII 0wn3z 70u
darobin on 2003-04-10T15:41:32
The question being "would it have influenced the design of the language" I still don't see the link!
Re:Definitely not!
darobin on 2003-04-10T09:09:15
C, shell, sed, awk etc would have been designet otherwise as well!
Yes! But Python and Ruby would remain the same...
I can live with stuff being on Shift. What pains me is Alt-Gr (dunno if you have it, it's for a third item on the same key and sits immediately right of the space bra [typo intentionally not corrected] instead of the right Alt key). You mention "/", but on French keyboards "\" is much worse being Alt-Gr-8 (done with a single hand, thumb on Alt-Gr, middle finger on 8 -- it's quickly painful). Needless to say Windows/DOS paths drive me crazy.
I used qwerty keyboards exclusively for a long time and I liked it (UK keyboards, they're better than US ones). Most OSs have shortcuts to type in accents (and I don't write in French much). At work I don't but since I'm to start programming more, I'm pretty certain I'll go back to qwerty.
Re:Definitely not!
perigrin on 2003-04-12T00:14:29
I'm afriad I have to contest the bit about the UK keyboard being better the the US keyboard.
They swap @ and "... for no apparent reason. If anything Perl has made me more sensitive to the similarity and differences in the usage of '/" and happy that on the keyboards I use most often (imported with from the states because I'm cheap like that) they're actually on the same key.
I can understand # being their funnly little L thing that they use for their currency, it might be useful occasionally (and if Larry were british would probably define a special case of Large Scalar), but moving @ is totally arbitrary and sounds almost as sadistic as the French keyboard.
Re:Definitely not!
darobin on 2003-04-14T09:30:29
Nah, the US keyboard is the one swapping the @ and ", you got it the wrong way 'round.
I'm not sure about using £ or £ for scalars, I think that in the interest of I18N the best would have been the universal currency symbol, ¤.
Although it wasnt as bad, I learnt Perl when I was using a German (European) keyboard layout.. took me ages to "relearn" how to type Perl when I started using a US keyboard layout again, especially since I'm not a true touch typer, but simply 'remember' the key positions
What's worse, I got used to playing Starcraft in German (with hotkeys) and the English hotkeys are COMPLETELY different