pxeger / whython

Fork of Python with some terrible custom features hacked in
https://www.pxeger.com/2021-09-19-hacking-on-cpython/
Other
16 stars 3 forks source link

Allow lazy evaluation #3

Closed cgccuser closed 2 years ago

cgccuser commented 2 years ago

For programmers, laziness is a virtue. This can be observed from the popularity of languages such as Haskell. I propose adding lazy values to Whython. Perhaps syntax like LAZY sorted_list = sorted_list could be used so that my code runs even if I don't bother to implement a sorting algorithm. I'd do this myself but I'm too lazy to.

pxeger commented 2 years ago

unless I'm misunderstanding you, this is way too hard