Python Forum
language feature i'd like to have
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
language feature i'd like to have
#4
then i guess i need to ask if some idea makes ugly or non-pythonic code. so it is not ugly if a complicated expression is repeated, or do i need to do the detail work myself of "caching" it in another variable myself? a compiler or interpreter can detect that the expression is the same and has no side effects and cache it itself but readers of the code then have to visually compare each expression to be sure there is no subtle difference. at least in assembly language we had no complex expressions. but i am now long past assembly language (it wasn't very portable) and more oriented to code readability and abstract expression (and hopefully, portable).
Tradition is peer pressure from dead people

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


Messages In This Thread
language feature i'd like to have - by Skaperen - Feb-03-2018, 08:15 AM
RE: language feature i'd like to have - by buran - Feb-03-2018, 08:22 AM
RE: language feature i'd like to have - by Larz60+ - Feb-03-2018, 11:10 AM
RE: language feature i'd like to have - by Skaperen - Feb-04-2018, 03:07 AM
RE: language feature i'd like to have - by Skaperen - Feb-05-2018, 06:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is python an interpreted language or a compiled language? GouravDas 1 2,097 Jun-23-2020, 10:38 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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