Python Forum
i would like this kind of logic
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i would like this kind of logic
#1
back in my assembly language days i could put together some logic where i had 2 conditionals (lets call them A and B) and 2 bodies of code (C and D). if A is true i want to do C and D. if B is true i want to do only D. but i need to have C and D together because C changes the way D works. i'm guessing the basic way to do this in a high level language is the infamous goto if the language supports that. i have heard that some languages support odd language structures that someone thought was needed. i'm wondering if Python supports any. i remember it does the loop/else logic, which can sometimes be handy. anything else?

i did develop assembly language tools (macros) that created programming structures for conditionals and loops with nesting up to 99 levels (never tested). of course it did not enforce indentation. i did have a very fast AVL tree implementation that beat the hash table from IBM. i tried to use the hash table as a tree-cache but it actually slowed it down. took out the cache and it zoomed. that was back in the day when speed of code mattered. today, not so much, if at all (unless you are programming an antique).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  a new kind of cut command Skaperen 0 1,556 Jun-12-2019, 12:22 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020