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
-
I am somewhat confused... I don't think you can do programming without some kind of conditional operator or statement. I mean, loops can be turned in to recursion but that needs a conditional to terminate... But you said that if would be all right if it was in some sort of Lambda function so...Huh? :S
-
@Zaphod65 yeah I don't really know exactly what I'm trying to say since it's just something I've been thinking about.
But imagine that our goal was to produce a program with a finitely long execution (e.g. send in something and expect a result in the end, so not a program that loops or takes user input etc.). Could it be done with only functional statements after another? -
Qchmqs5378y@sebbestune you are trying to explain this before fully thinking it through, the only thing i understood is that you're fully confused, either slightly intoxicated or sleepy as two fucks
-
@Qchmqs hey that was actually not bad guesses 😂 but yeah I'll try to think it through and formulate it properly before saying any more. Perhaps get some sleep too 😛
Related Rants
Just something I've been thinking on for a while:
How could programming be done if we couldn't use ordinary if-statements (but functional set operations such as map, filter, with an if- in the lambda function etc. is alright).
Could it work? Also would it be possible to reduce the amount of while loops by using functions for most of the "loop situations" as well?
undefined
just a thought
functions