@coriander sorry goblin but i also have not been enjoying the heat lately.
@lapis sometimes i feel great FOMO from having not been on tumblr back when it was big
@lapis I actually haven't seen this before lmao
@lapis this is how i learned about the vivziepop homestuck pilot, which i cannot believe is real
@cam delete this
@monorail ....i also thought it was a juice box
@cam fuck I wanted to post this! now what do I post!!!!!!
re: shouting
@aescling @vaporeon_ the python syntax forces a new variable to be added to the current scope, something the javascript IIFEs do not do
there is no need to perfectly replicate javascript IIFE behavior because it is impossible
re: shouting
@aescling @vaporeon_ what is wrong with having an iife that is a procedure can use again?
re: shouting
@aescling @vaporeon_ personally what i would do is
def iife(func):
func()
return func
@iife
my_func():
print('my_func')
So that the original function still exists
re: shouting
@aescling @vaporeon_ whatever the return value of the decorator is becomes the value of the function you decorated
re: shouting
@aescling @vaporeon_ oh because it's calling _some_iffe
the pattern
my_func = decorator(my_func)
where you replace a function with a the return value of another function, is equivalent to
@decorator
def my_func():
print('my_func')
So we could define an decorator iife
:
def iife(x):
x()
And use it like so:
@iife
def my_func():
print('my_func')
This is fully equivalent to the disgusting evil hack you just shared.
re: shouting
@aescling @vaporeon_ why are there parenthesis after @lambda _:_()
?
re: shouting
@aescling @vaporeon_ what the fuck
re: shouting
@aescling @vaporeon_ how would I do it in python?
@maple i mean, it does look cool though
kept afloat by big ideas.
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. certified weird movie liker. top-ranked c++ hater. prophet of The Truth. space dandy and kill la kill propagandist. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
I am not picky about names. Most people here call me catwin, clodboy, clodsire, or Caleb.
pfp is by @The_T
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"i know your taste in movies well enough to discount your opinion" ~globin
he/him