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.
(french keyboards)-- (Score:2, Interesting)
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
$ (did you know use Perl; won't allow '$' as a sub (Score:2)
So all those characters are missing, but $ is there? Odd. Sounds like American imperialism to me.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
taper a` la masheen (Score:3, Funny)
Reply to This
Re:taper a` la masheen (Score:3, Funny)
Oh, you mean that's what pair programming is about?
-- Robin Berjon [berjon.com]
ASCII 0wn3z 70u (Score:2)
still thinking sigils are a good idea, and I
agree. There's nothing preventing a frenchman
or Russian from using an American keyboard
layout, or any other there heart desires;
particularly if they are running something
like Linux. And braces are hardly Perl-specific.
Were that I say, pancakes?
Re:ASCII 0wn3z 70u (Score:2)
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.
-- Robin Berjon [berjon.com]
Re:ASCII 0wn3z 70u (Score:2)
Were that I say, pancakes?
Re:ASCII 0wn3z 70u (Score:2)
The question being "would it have influenced the design of the language" I still don't see the link!
-- Robin Berjon [berjon.com]
Definitely not! (Score:2, Insightful)
Once when I had to do a long stint of Pascal programming (ah the olden days) I found a North American keyboard and used that.
That also made me realise why on earth the slash (/) is used as a regexp separator - it sit nicely in the lower right hand side of the keyboard - just where dash is on my danish keyboard, instead of as shift-7.
I had to give up after a while, as it was just too difficult to write normal danish in comments, letters, not
Re:Definitely not! (Score:2)
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 quick
-- Robin Berjon [berjon.com]
Re:Definitely not! (Score:1)
They swap @ and "
I can understand # being their funnly little L thing that they use for their currency, it might be useful occasionally (and if Larry
Re:Definitely not! (Score:2)
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, ¤.
-- Robin Berjon [berjon.com]
Yes (Score:2)
German keyboards too ? (Score:1)
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 :)