fyeah icon indicating copy to clipboard operation
fyeah copied to clipboard

Adding lazy evaluation option

Open andrastantos opened this issue 1 year ago • 1 comments

Hello!

I needed a way to lazy-evaluate f-strings and I have found your library to be an excellent starting point. However, I needed to add a small modification (retaining of the calling scope) to make this feature functional.

In this commit you'll find a new version of 'f', 'lazy_f', which performs this lazy evaluation.

Thanks again for the great work! Andras

andrastantos avatar May 20 '24 23:05 andrastantos

An interesting idea. I am still considering the implications, but noting here for you and future me that this would mirror the not-as-of-now-added fl string in CPython https://github.com/python/cpython/issues/77135

ucodery avatar Sep 03 '24 16:09 ucodery