http://qs1969.pair.com?node_id=578796


in reply to If I was forced to program in another language, the Perl language feature I would miss most would be:

I most miss the ability to use ad-hoc lists. Although in C++ you can implement things like the >> and << that are used for streaming, it would be a lot of work and still not give you some simple tools like the ability to write just for my $p ( _min() .. _max(), 0, -1 ).

I miss trailing comma a tiny bit. I'd miss it even less if our company coding standard allowed me to use leading commas:

foo= bar( first , second , third );

I don't miss most of the items listed. I find that it works best to program in the language you are using rather than try to force the language into the mold of your preferred programming style. So when programming in C++, for example, I design solutions that fit C++ and only rarely wish for features of other languages.

- tye        

  • Comment on Re: If I was forced to program in another language, the Perl language feature I would miss most would be: (ad-hoc lists)
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: If I was forced to program in another language, the Perl language feature I would miss most would be: (ad-hoc lists)
by davido (Cardinal) on Oct 18, 2006 at 05:46 UTC

    I find that it works best to program in the language you are using rather than try to force the language into the mold of your preferred programming style. So when programming in C++, for example, I design solutions that fit C++ and only rarely wish for features of other languages.

    That concept is very much similar to the way fluency in a verbal language works. English is my first language, but when I achieved fluency in Portuguese, I found it much easier, when speaking Portuguese, to simply think and express all in Portuguese. Formulating thoughts in English and translating them to Portuguese on-the-fly is cumbersome, and tends to force expression down into the baby-talk realm. You're simply better off thinking and interacting in the language of choice at the moment. Occasionally one finds oneself wishing that a certain word existed in another language, but for the most part it's inconvenient to hold up a conversation while focusing on wrapping an English means of expression in a Portuguese idiom.

    I guess that parallel is one of the reasons why programming languages are called programming languages.


    Dave