1

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?

Comments
  • 0
    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
  • 0
    @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?
  • 1
    @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
  • 0
    @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 😛
Add Comment