[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 6502 illegal opcodes questions
- Subject: Re: 6502 illegal opcodes questions
- From: Kent Friis <nospam@nospam.invalid>
- Date: 03 Jun 2006 16:12:06 GMT
- Followup-to: comp.sys.cbm
- Newsgroups: comp.sys.cbm, comp.sys.apple2, rec.games.video.classic
- Organization: SunSITE.dk - Supporting Open source
- References: <444be7a0$0$11080$9b4e6d93@newsread4.arcor-online.net> <44809520$0$11067$9b4e6d93@newsread4.arcor-online.net> <z6qdnXs_mfZaiBzZRVn-ig@comcast.com> <4481749f$0$15787$14726298@news.sunsite.dk> <e5rvah$1ufb$1@merope.saaf.se>
- User-agent: slrn/0.9.8.0 (Linux)
- Xref: g2news2.google.com comp.sys.cbm:16245 comp.sys.apple2:8747 rec.games.video.classic:5413
["Followup-To:" header set to comp.sys.cbm.]
Den Sat, 03 Jun 2006 12:42:56 GMT skrev Paul Schlyter:
> In article <4481749f$0$15787$14726298@news.sunsite.dk>,
> Kent Friis <nospam@nospam.invalid> wrote:
>
>> Den Fri, 02 Jun 2006 21:53:25 -0700 skrev Michael J. Mahon:
>>
>>> Many years later, I think that the "offside rule" for delimiting
>>> blocks simply by indentation is a very nice approach. Why on
>>> earth should white space, the most significant characteristic of
>>> text to the human eye, be ignored by most programming languages?
>>
>> For the same reason that comments, the most human readable text found
>> in a program, are ignored by the programming language. Whitespace is
>> an important part of making the program more readable.
>>
>> A programming language that prevents me to use white space to make
>> code readable (because that would change what the code does) is just
>> as bad as one that prevents me from writing a comment where needed
>> (Actually, Visual Basic .NET does that in certain places. Yuck).
>
> Check out Python - there indentation delimits if blocks. And I cannot
> se any reason why:
>
> if condition
> statement1
> statement2
> else
> statement3
> statement4
> rest_of_program
>
> is more readable than:
>
> if condition
> statement1
> statement2
> else
> statement3
> statement4
> rest_of_program
>
> :-)
For the same reason that /* aadkfjghaldfjghsdklfgjhasdklguaadfkghj */
is better than being unable to write a comment: Both are stupid examples
of using a thing meant for making things easier for the exact opposite
cause.
Now try to imagine that someone wants to indent code to actually make
it *more readable*, just like someone writing comments to actually
explain what's going on. Then you might see the point.
/Kent
--
Hard work may pay off in the long run, but laziness pays off right now.