Python and Flaming Thunder
Dan Upton
upton at virginia.edu
Wed May 21 12:42:44 EDT 2008
On Wed, May 21, 2008 at 12:33 PM, Daniel Fetchinson
<fetchinson at googlemail.com> wrote:
>>>> Or just:
>>>>
>>>> If command is "quit" ...
>>>
>>> Hmmm. In Flaming Thunder, I'm using "is" (and "is an", "is a", etc)
>>> for assigning and checking types. For example, to read data from a
>>> file and check for errors:
>>>
>>> Read data from "input.txt".
>>> If data is an error then go to ...
>>
>> Arf ! A goto !
>
> You are surely aware of the fact that the C source of python also uses
> goto at tons of places. Is that Arf! too?
>
And in the Linux kernel, and probably lots of other places
too--several places I've seen it used, they explain it as "this helps
clue in the optimizer" or something to that effect. (That doesn't
mean it's a good idea to use it in everyday code though.)
More information about the Python-list
mailing list