Feb-03-2018, 08:15 AM
ages ago i wrote a macro system for IBM mainframe S/360 S/370 assembler language. one of its features was if you wanted to do a comparison for either an if test or a loop test, you could express the two data sources once, then simply express one data source thereafter and each comparison with one source would insert assembler code as if it were coded with two sources, using the missing source position from the previous comparison. i'd like to see something like that in Python.
* Skaperen ducks behind the red couch
if data_array[data_index[usage_factor[1]]] == '(': ... elif == ')': ... elif == '|': ... else: ...because of the way conditionals were separated from code structures in the system i created in that macro language, this feature could also be used on complex loops. i have heard that Python has some kind of redundancy reduction in comparisons but i have been unable to find it. so maybe this would be useful.
if data_array[data_index[usage_factor[1]]] == '(' == 'a' or == 'b' or == 'c': ... else: ...thoughts?
* Skaperen ducks behind the red couch
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.