Re: newbie: self.member syntax seems /really/ annoying



Charles Fox wrote:

I've just started playing around with Python, as a possible
replacement for a mix of C++, Matlab and Lisp. The language looks
lovely and clean with one huge exception: I do a lot of numerical
modeling, so I deal with objects (like neurons) described
mathematically in papers, by equations like

I thought it was horrible when I started, but now when looking at somebody
else's C++ code I find it very hard to work out whether something is a
global, a member or a local variable, unless they use some sort of naming
convention.

If you alias self as "s", it's only two more characters per variable access,
which is the same as the C++ "m_" naming convention.

--
Jeremy Sanders
http://www.jeremysanders.net/
.



Relevant Pages

  • Re: The origins of CL conditions system
    ... In a dynamic language, ... Stroustrup was asking for the input from people who had hands-on experience with systems in which resumption was supported. ... On the side of resumption, Martin O'Riordan reported that "Microsoft had several years of positive experience with resumable exception handling," but the absence of specific examples weakened his case. ... I think it's interesting that Kent mentions, in "Condition Handling in the Lisp Language Family", Multics PL/I as being an influence for ZetaLisp and, therefore, on Common Lisp conditions because Stroustrup also mentioned PL/I as being a source of both positive and negative experiences with restarts, to use the Lisp terminology. ...
    (comp.lang.lisp)
  • Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
    ... >> the language should be available to users. ... In the design of Common Lisp, I asked Dave Moon (one of the architects ... Now, there are good kinds of low-level, like the way that floats are ...
    (comp.lang.lisp)
  • Re: initial lang spec: SXIL...
    ... Shouldn't some of that functionality be moved into the exception ... but, of course, natively using SEH requires compiler support. ... throws a fixed exception code in my case, and generic handlers are used. ... It took many years, and a language review, before I realized that my fond ...
    (comp.lang.misc)
  • Re: CollabRx seeks brilliant engineers for an excellent e-science adventure
    ... belief that lisp programmers are smarter/better. ... Java or PHP programmers. ... a type of language that attracts a personality that meets my perceptions ...
    (comp.lang.lisp)
  • Re: Whats the best language to learn...
    ... on processors designed to run Lisp and Lisp OSes. ... byte-addressed memory, has native support for variable-sized value types, ... popular OO language, rather a language about like that of Delphi would have ... lisp, java, ruby, etc. ...
    (comp.programming)