Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Alternatives to sed + awk
- Date: Fri, 11 Mar 2011 11:47:40 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Alternatives to sed + awk
- References: <AANLkTim_-D9CFYC8TNp33ni85zB+QBA7jV=BpLN=4SbZ@example.com> <4D6F8D94.9040109@example.com> <87ei6nl906.fsf@example.com> <AANLkTimk1z41fSvQQmU+7fE-1Krd_kuo3_z-1SYD5rW6@example.com> <87ipvskik1.fsf@example.com> <AANLkTi=_6DoBt+xfQVOwM6KyKrxxgA_Ec9bhp751f15y@example.com> <8762rsjkdx.fsf@example.com> <AANLkTik=tHOgTRvcvNd0qsx9-o9MuqBnWUjkWVn+0U_7@example.com> <87vczro8pk.fsf@example.com> <AANLkTi=SZg5g1q1wkDzH0axaFwj0qEeMrzz+C4JVMhSa@example.com>
Josh Glover writes: > On 10 March 2011 06:17, Stephen J. Turnbull <stephen@example.com> wrote: > > However, again it seems to me to be easy to abuse. > > Sure, but so's C. Yeah, but I don't think Ruby is in the same market segment as C. ;-) > > However, the basic syntax of Lisp aka "Lots of Irritating Single > > Parentheses" is detested by many. > > Just like Python's whitespace requirements, you get used to it. Right; the point is that not everybody does get used to it, and those who don't are unlikely to grant that DSLs written in Python or Lisp are DSLs. Cf. Simon's post. > functions themselves are not first class objects as in Python; you > need to turn them into a Proc (or, more powerfully a Binding) object. Ah. I like functions as first class objects a lot. > > def test_crappy_class > > crap = CrappyClass.new > > assert_equal(0, crap.value) > > crap.increment() > > assert_equal(1, crap.value) > > Sure. What's the difference, really? In Ruby, instance variables are > hidden by default, which is a nice signal to programmers that they > shouldn't be considered part of a class's API. But if you need to get > at them, you can do it. I find the Python convention that identifiers named with leading underscores are private an equally good signal in practice.
- Follow-Ups:
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- References:
- [tlug] Alternatives to sed + awk
- From: Nguyen Vu Hung
- Re: [tlug] Alternatives to sed + awk
- From: Alexander Danilov
- Re: [tlug] Alternatives to sed + awk
- From: Stephen J. Turnbull
- Re: [tlug] Alternatives to sed + awk
- From: Alexander Danilov
- Re: [tlug] Alternatives to sed + awk
- From: Stephen J. Turnbull
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Stephen J. Turnbull
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Stephen J. Turnbull
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Assembly Language v C and Embedded Development: !gcc for PIC16F84
- Next by Date: Re: [tlug] Alternatives to sed + awk
- Previous by thread: Re: [tlug] Alternatives to sed + awk
- Next by thread: Re: [tlug] Alternatives to sed + awk
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links