Python and Flaming Thunder
Torsten Bronger
bronger at physik.rwth-aachen.de
Wed May 21 12:59:34 EDT 2008
Hallöchen!
Daniel Fetchinson writes:
>>>> 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?
In the hands of a skilled person who really knows what he/she does,
it can be a useful statement. But this collides with the goals of
FT, which claims to be simple to use. Besides, the above use case
for a goto is definitively awful.
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: bronger at jabber.org
(See http://ime.webhop.org for further contact info.)
More information about the Python-list
mailing list