Maybe a stupid idea

From: sebb (sebb_at_linuxcult.com)
Date: 12/31/03


Date: 31 Dec 2003 09:49:55 -0800

I'm kind of newbie to programming, but I thought of something and I
want some opinions on that.

It's about a new instruction block to do some cycles.

I thought about that because it's not very easy to program a cycle.
Here is a simple example :

b=0

while b < 50:
    b+=1
    print "*" * b

while b > 0:
    b-= 1
    print "*" * b

It takes two while blocks to do a cycle.

I know that cycles is not a structure of any programming language, but
I want some opinions the know if my idea is stupid or not.

If the idea is not so stupid, python may be the first language to have
a completely new structure block :-)

Note : English is not my mother tongue so the message can have
mistakes.



Relevant Pages

  • Re: append problem
    ... It would be stupid to attempt to program such a thing ... one speaks programming with this type of person. ... that Prolog is not a suitable language if one is programming real time ... In what way, in expressing these opinions, am I "this type of person"? ...
    (comp.lang.prolog)
  • Re: How to count pulses per second ?
    ... So the output should be HIGH only if 10 cycles per second ... I'm afraid I still dont have a working solution (PIC programming ... multivibrator (one-shot) so that as long as the edges which trigger ... and do it in an absolute counting way that handles irregualr pulse timing ...
    (sci.electronics.basics)
  • Re: Safer and Better C
    ... > You speak in these generalities with your opinions about these things ... > I don't think programming in C is about machismo. ... "Any baby snookums can be a Yankee fan, ... fiber to be a Red Sox fan" - "I listened to Toronto come back ...
    (comp.lang.c)
  • Re: C as a web scripting language
    ... think it is a terrible choice of language for web programming. ... I have yet to find a language that is not a terrible choice for Web ... sometimes human cycles are more important than machine cycles ...
    (comp.lang.c)
  • Re: A lurkers take on C.L.C pedantry
    ... reasons wholly unrelated to programming or Usenet. ... Richard Heathfield is an important member of this n.g and a ... programmer whose opinions are always worthy of attention. ... respected member, at least that is my opinion. ...
    (comp.lang.c)