Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lorentz15174333dLambdas are a powerful drug. You go down that path, in 3 months you'll be defining control flow primitives as functions. In 6 months, you'll be bashing your head into the wall trying to understand the formalization of a typeclass. Before you realize it, someone will ask a question involving monads and you'll go "Oh, Monad is a simple case, really.".
-
Demolishun34967333d@lorentz oh, I noticed Godot has first class functions and lambdas now in Godot 4. I remember you had issues with the language, but I could not remember the reasons. I have been using map and filter on lists. Which is nice.
-
lorentz15174333d@Demolishun yeah I've been playing with them a while, it's like it's a whole new language
Related Rants
lambda lambda lambda!
So I was tasked with porting a bunch of code to a new set of libraries a few years ago. I didn't have a whole lot of experience with the framework at the time. I just fixed issues with what I thought should be in there. I mean it compiles right?
Fast forward 4 years:
Coworker: Uh, Demo, this printing code doesn't work. A customer is complaining.
Me: I didn't work on that.
Coworker: Yes, you did...
Me: Oh, yeah, I remember that. I just guessed. I didn't know what I was doing back then. It looks like I am not waiting for the printer. I will put a lambda in there to notify when the printer is ready. Then another lambda inside of that to delete objects when that is done. Hey! I put a lambda inside lambda!
Coworker: Thanks, it works now.
Talking to my boss later. I had just explained how I fixed the issue:
Me: I put a lambda inside a lambda! Wait, I have a new goal. Putting a lambda inside a lambda inside a lambda!
Boss: Uh, I am not sure that is a "good" goal...
rant
sketchy
port
inception
lambda