6 ms·
I’m annoyed you buried such a simple suggestion after so many examples and pointless tangents. The reason this isn’t done should be obvious to you: your propose
by goodside 7y ago
I’m annoyed you buried such a simple suggestion after so many examples and pointless tangents. The reason this isn’t done should be obvious to you: your proposed operator isn’t ASCII, unlike everything else in the syntax. (I have to call it “your proposed operator” because I don’t know or care how to type it on my iPhone — so it’s already causing problems.) The nearest ASCII rendering, `<-` as used in R, is syntactically ambiguous. You should have started this post with your actual proposal, instead of prefacing it with pompous language and details.
- Sean1708 7y agoAlso from what I can tell their argument is actually about replacing all uses of `=` with something else, and there's no reason the something else couldn't be `:=` (which has plenty of prior art, even if it has fallen out of favour recently).
- oefrha 7y ago> there's no reason the something else couldn't be `:=` (which has plenty of prior art, even if it's fallen out of favour recently). Pascal was my first language, so when I first learned C (my second language) I actually found the =, == pair much less intuitive than the :=, = pair.
- geofft 7y agoAgree, either the author genuinely doesn't know what keyboards and OSes people are using to write Python and thinks APL keyboards are standard (in which case the author is unqualified to say what Python needs or doesn't need), or is trolling. I flagged the post, it's just flamebait.
- odiroot 7y agoComposeKey + < + -
- geofft 7y agoI know many Python programmers, of which exactly one has a compose key.
- michaelmrose 7y agoYou seem awfully quick to declare the poster ignorant. Under Linux it's entirely trivial to make a different glyph appear on the screen when you press a particular button or combination of buttons. I'm guessing that it's not much harder on other OS. Mac and windows probably have an app with an actual gui even. Isn't it kind of odd to propose that someone can learn a new programming language but can't learn how to press a different button?
- msla 7y agoIt's odd to propose that everyone is programming in a UTF-8 environment, or that all programmers even know what UTF-8 is. "Should know", sure, but they don't, and trying to make an "is" from an "ought" is a nasty, nasty habit.
- ken 7y agoThe default encoding for Python source code is UTF-8. If they're not using UTF-8 here, it's by choice.
- rumanator 7y ago> Under Linux it's entirely trivial to make a different glyph appear on the screen when you press a particular button or combination of buttons. I'm assuming you're yanking everyone's chain, because suggesting that having to customize standard keyboard layouts just to be able to write code in a programming language is simply absurd.
- michaelmrose 7y agoOne can in place run xmodmap to make a single key change or run it on a list of changes to be made saved in a file.
- geofft 7y agoThat's about X, not "Linux." How do you do that on a Chromebook? How do you do that on a text-mode console? How do you do that on Wayland? How do you do that over SSH from ConnectBot on Android?
- b0rsuk 7y agoFYI, it's called Bottom Line Up First (BLUF), and comes from military.