13 Jul
2020
13 Jul
'20
8:47 p.m.
Today I think about lambda in Python and what if we introduce the new syntax: ```python def lock(*args, closure): # Do some stuff closure() # Call closure # Finish stuff if __name__ == '__main__': lock(): # Do some things here is thread safe ``` This feature could be very similar as in `Kotlin` inline functions https://kotlinlang.org/docs/reference/inline-functions.html
1353
Age (days ago)
1354
Last active (days ago)
2 comments
3 participants
participants (3)
-
Alexandre Brault
-
Joao S. O. Bueno
-
redradist@gmail.com