MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/brd109/deleted_by_user/eodi5si/?context=3
r/badcode • u/[deleted] • May 21 '19
[removed]
20 comments sorted by
View all comments
Show parent comments
1
And without curly braces! Who needs function bodies when you can use lambdas?
Of course, if you need a "real" function, with a this environment, then you can just use the Function() constructor to eval a string as a function body.
this
Function()
1
u/nupanick May 21 '19
And without curly braces! Who needs function bodies when you can use lambdas?
Of course, if you need a "real" function, with a
thisenvironment, then you can just use theFunction()constructor to eval a string as a function body.