|
From: Sasha <nd...@ma...> - 2006-02-10 22:57:20
|
Actually, what would be wrong with a single letter "c" or "r" for the concatenator? NumPy already has one single-letter global identifier - "e", so it will not be against any naming standard. I don't think either "c" or "r" will conflict with anything in the standard library. I would still prefer "c" because "r" is taken by RPy. On 2/10/06, Sasha <nd...@ma...> wrote: > To tell you the truth I dislike trailing underscore much more than the > choice of letter. In my code I will probably be renaming all these > foo_ to delete the underscore foo_(...) or foo_[...] is way too ugly > for my taste. However I fully admit that it is just a matter of taste > and it is trivial to rename things on import in Python. > > PS: Trailing underscore reminds me of C++ - the language that I > happily live without :-) > > On 2/10/06, Ryan Krauss <rya...@gm...> wrote: > > The problem is that c_ at least used to mean "column concatenate" and > > concatenate is too long to type. > > > > On 2/10/06, Sasha <nd...@ma...> wrote: > > > On 2/10/06, Travis Oliphant <oli...@ee...> wrote: > > > > The whole point of r_ is to allow you to use slice notation to buil= d > > > > ranges easily. I wrote it precisely to make it easier to construct > > > > arrays in a simliar style that Matlab allows. > > > > > > Maybe it is just me, but r_ is rather unintuitive. I would expect > > > something like this to be called "c" for "combine" or "concatenate." > > > This is the name used by S+ and R. > > > > > > From R manual: > > > """ > > > c package:base R Documentation > > > Combine Values into a Vector or List > > > ... > > > Examples: > > > c(1,7:9) > > > ... > > > """ > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo= g files > > > for problems? Stop! Download the new AJAX search engine that makes > > > searching your log files as easy as surfing the web. DOWNLOAD SPLUN= K! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid=103432&bid#0486&dat=121642 > > > _______________________________________________ > > > Numpy-discussion mailing list > > > Num...@li... > > > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > > > > > > |