On the page http://wiki.python.org/moin/Python3%2e0Suggestions
I noticed an interesting suggestion:
"These operators ≤ ≥ â‰* should be added to the language having the
following meaning:
<= >= !=
this should improve readibility (and make language more accessible to
beginners).
This should be an evolution similar to the digraphe and trigraph
(digramme et trigramme) from C and C++ languages."
How do people on this group feel about this suggestion?
The symbols above are not even latin-1, you need utf-8.
(There are not many usefuls symbols in latin-1. Maybe one could use ×
for cartesian products...)
And while they are better readable, they are not better typable (at
least with most current editors).
Is this idea absurd or will one day our children think that restricting
to 7-bit ascii was absurd?
Are there similar attempts in other languages? I can only think of APL,
but that was a long time ago.
Once you open your mind for using non-ascii symbols, I'm sure one can
find a bunch of useful applications. Variable names could be allowed to
be non-ascii, as in XML. Think class names in Arabian... Or you could
use Greek letters if you run out of one-letter variable names, just as
Mathematicians do. Would this be desirable or rather a horror scenario?
Opinions?
-- Christoph 61 4890
Christoph Zwerschke wrote: On the page http://wiki.python.org/moin/Python3%2e0Suggestions I noticed an interesting suggestion:
"These operators ≤ ≥ â‰* should be added to the language having the following meaning:
<= >= !=
this should improve readibility (and make language more accessible to beginners).
This should be an evolution similar to the digraphe and trigraph (digramme et trigramme) from C and C++ languages."
How do people on this group feel about this suggestion?
The symbols above are not even latin-1, you need utf-8.
(There are not many usefuls symbols in latin-1. Maybe one could use × for cartesian products...)
And while they are better readable, they are not better typable (at least with most current editors).
Is this idea absurd or will one day our children think that restricting to 7-bit ascii was absurd?
Are there similar attempts in other languages? I can only think of APL, but that was a long time ago.
Once you open your mind for using non-ascii symbols, I'm sure one can find a bunch of useful applications. Variable names could be allowed to be non-ascii, as in XML. Think class names in Arabian... Or you could use Greek letters if you run out of one-letter variable names, just as Mathematicians do. Would this be desirable or rather a horror scenario? Opinions?
-- Christoph
I can't find "≤, ≥, or â‰*" on my keyboard.
James
James Stroud wrote: I can't find "≤, ≥, or â‰*" on my keyboard.
Get a better keyboard? or OS?
On OS X,
≤ is Alt-,
≥ is Alt-.
â‰* is Alt-=
Fewer keystrokes than <= or >= or !=.
--
Robert Kern ro*********@gma il.com
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Robert Kern wrote: I can't find "?, ?, or ?" on my keyboard.
Get a better keyboard? or OS?
On OS X,
? is Alt-, ? is Alt-. ? is Alt-=
Fewer keystrokes than <= or >= or !=.
Sure, but I can't find OS X listed as a prerequisite for using Python. So,
while I don't give a damn if those symbols are going to be supported by Python,
I don't think the plain ASCII version should be deprecated. There are too many
situations where it's still useful (coding across old terminals and whatnot).
--
Giovanni Bajo
On Tue, 24 Jan 2006 04:09:00 +0100, Christoph Zwerschke wrote: On the page http://wiki.python.org/moin/Python3%2e0Suggestions I noticed an interesting suggestion:
"These operators ≤ ≥ â‰* should be added to the language having the following meaning:
<= >= !=
this should improve readibility (and make language more accessible to beginners).
This should be an evolution similar to the digraphe and trigraph (digramme et trigramme) from C and C++ languages."
How do people on this group feel about this suggestion?
The symbols above are not even latin-1, you need utf-8.
(There are not many usefuls symbols in latin-1. Maybe one could use × for cartesian products...)
Or for multiplication :-)
And while they are better readable, they are not better typable (at least with most current editors).
Is this idea absurd or will one day our children think that restricting to 7-bit ascii was absurd?
Are there similar attempts in other languages? I can only think of APL, but that was a long time ago.
My earliest programming was on (classic) Macintosh, which supported a
number of special characters including ≤ ≥ â‰* with the obvious
meanings. They were easy to enter too: the Mac keyboard had (has?) an
option key, and holding the option key down while typing a character would
enter a special character. E.g. option-s gave Greek sigma, option-p gave
pi, option-less-than gave ≤, and so forth. Much easier than trying to
memorize character codes.
I greatly miss the Mac's ease of entering special characters, and I miss
the ability to use proper mathematical symbols for (e.g.) pi, not equal,
and so forth.
Once you open your mind for using non-ascii symbols, I'm sure one can find a bunch of useful applications. Variable names could be allowed to be non-ascii, as in XML. Think class names in Arabian... Or you could use Greek letters if you run out of one-letter variable names, just as Mathematicians do. Would this be desirable or rather a horror scenario? Opinions?
I think the use of digraphs like != for not equal is a poor substitute for
a real not-equal symbol. I think the reliance of 7-bit ASCII is horrible
and primitive, but without easier, more intuitive ways of entering
non-ASCII characters, and better support for displaying non-ASCII
characters in the console, I can't see this suggestion going anywhere.
--
Steven.
Christoph Zwerschke wrote: On the page http://wiki.python.org/moin/Python3%2e0Suggestions I noticed an interesting suggestion:
"These operators ≤ ≥ â‰* should be added to the language having the following meaning:
<= >= !=
this should improve readibility (and make language more accessible to beginners).
This should be an evolution similar to the digraphe and trigraph (digramme et trigramme) from C and C++ languages."
How do people on this group feel about this suggestion?
The symbols above are not even latin-1, you need utf-8.
(There are not many usefuls symbols in latin-1. Maybe one could use × for cartesian products...)
And while they are better readable, they are not better typable (at least with most current editors).
Is this idea absurd or will one day our children think that restricting to 7-bit ascii was absurd?
Are there similar attempts in other languages? I can only think of APL, but that was a long time ago.
Once you open your mind for using non-ascii symbols, I'm sure one can find a bunch of useful applications. Variable names could be allowed to be non-ascii, as in XML. Think class names in Arabian... Or you could use Greek letters if you run out of one-letter variable names, just as Mathematicians do. Would this be desirable or rather a horror scenario? Opinions?
-- Christoph
One of issues in Python is cross-platform portability. Limiting the
range of symbols to lower ASCII and with specification of a code table
to ASCII is a good deal here. I think, that Unicode is not yet
everywhere and as long it is that way it makes not much sense to go for
it in Python.
Claudio
>> Is this idea absurd or will one day our children think that restricting to 7-bit ascii was absurd?
Both... this idea will only become none-absurd when unicode will become
as prevalent as ascii, i.e. unicode keyboards, universal support under
almost every application, and so on. Even if you can easly type it on
your macintosh, good luck using it while using said macintosh to ssh or
telnet to a remote server and trying to type unicode...
Christoph Zwerschke wrote: "These operators ≤ ≥ â‰* should be added to the language having the following meaning:
<= >= !=
this should improve readibility (and make language more accessible to beginners).
I assume most python beginners know some other programming language, and
are familiar with the >= and friends. Those learning python as their
first programming language will benefit from learning the >= when they
learn a new language.
Unicode is not yet supported everywhere, so some editors/terminals might
display the suggested one-char operators as something else, effectively
"guess what operator I was thinking".
Fortran 90 allowed >, >= instead of .GT., .GE. of Fortran 77. But F90
uses ! as comment symbol and therefore need /= instead of != for
inequality. I guess just because they wanted. However, it is one more
needless detail to remember. Same with the suggested operators.
Giovanni Bajo wrote: Robert Kern wrote:
I can't find "?, ?, or ?" on my keyboard.
Posting code to newsgroups might get harder too. :-)
Rocco Moretti wrote:
[James Stroud wrote:] I can't find "?, ?, or ?" on my keyboard.
Posting code to newsgroups might get harder too. :-)
His post made it through fine. Your newsreader messed it up.
--
Robert Kern ro*********@gma il.com
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brandon McCombs |
last post by:
This may be the wrong group but I didn't see anything for VC++ so I'm
trying here.
I have a C++ book by Deitel and Deitel that says I can use fstream
File("data.dat", ios::in | ios::out | ios::binary) to declare a file
object with read/write modes turned on for working with binary data.
I've tried this and my file is not created. The only...
|
by: codymanix |
last post by:
Last night I had several thought about RAII and want to discuss a bit.
Why doesn't CSharp support destructors in structs? Wouldn't that make RAII
possible like in C++? When the struct goes out of scope, the dtor could be
immediately be called (no GC needed).
For that, you don't have to declare the whole File class as a struct (which
would...
|
by: obhayes |
last post by:
Hi All,
Im using classic ASP (3.0) and I have a web farm with 2 webservers
(webserver A and webserver B, both windows server 2003). I do not want
to store any client specific information on the webserver (therefore do
not intend to use the session object- as you cannot gaurantee which
server the user will go to). I want to store a small value...
|
by: Paul |
last post by:
hi, there,
for example,
char *mystr="##this is##a examp#le";
I want to replace all the "##" in mystr with "****". How can I do this?
I checked all the string functions in C, but did not find one.
|
by: markryde |
last post by:
Hello,
I saw in some open source projects a use of "!!" in "C" code;
for example:
in some header file
#define event_pending(v) \
(!!(v)->vcpu_info->evtchn_upcall_pending & \
!(v)->vcpu_info->evtchn_upcall_mask)
whereas evtchn_upcall_pending is of type unsigned char
(and also evtchn_upcall_mask is of type unsigned char).
| |
by: Jess |
last post by:
Hello,
If I create a temporary object using a dynamically created object's
pointer, then when the temporary object is destroyed, will the
dynamically created object be destroyed too? My guess is that it's
not destroyed, but I'm not sure.
I have the following program:
#include<iostream>
|
by: shilpasharma |
last post by:
Hi,
Can anybody let me know how I can optimise following Query.
Select * from reports
where
( exists ( SELECT 1 FROM results_required rr, item_claims_trials ict, results res
WHERE ict.t_t_id IN ( 3725 )
and res.rr_rr_id = rr.rr_id
AND rr.rt_rt_id = -1
and rr.ict_ict_id = ict.ict_id
|
by: archimed7592 |
last post by:
Hi.
for example i have base class A and dirved class B:
struct A
{
virtual void f() { std::cout << "A::f()" << std::endl; }
};
struct B : public A
{
|
by: Albert |
last post by:
Hi
I'm using the lcc compiler for win32. I tried compiling a program but
there's an error stating: "cpp: Can't open input file clrscr()"
I don't get it - I've included <tcconio.h>. (strange why they couldn't
have just left it as <conio.h>?):
#include <tcconio.h>
// code
|
by: raylopez99 |
last post by:
I have a form, Form6, that has a bunch of buttons overlaid on it. I
want to be able to click on any arbitrary area of the form, and if
that area of the form is overlaid by a button, I want to change the
color of the button to Coral, and show a MessageBox with the button
name.
So far, I've tried the below event handlers, and the only one...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |