15

My imperative dumb ass me trying to code in ocaml:
👁👄👁

Comments
  • 3
    But if it compiles it likely is also correct.
  • 2
    @Oktokolo If I can ever get it to compile
  • 1
    Do you also pronounce it: "oh camel?" or is it just me?
  • 1
    @rantsauce I pronounce it like "O'Camel" with an even less audibe e than in "camel".

    @12bitfloat Well... Just keep on adding type hints until the compiler points you right at the bug. And if you ever need to actually use the debugger - don't forget, that it can step backwards too.
  • 1
    I‘m curious what you are using ocaml for.
  • 2
    Functional programming is overrated.
  • 1
    @Lensflare We have to learn it for uni but I'm also interested in general
  • 1
    Nooooooooooooooo
    Ruuuuuuuuuuuuuuun
  • 1
    @aviophile do it long enough and eventually you'll see the benefits.

    The way I look at recursion now is a multi-headed, multiconditional loop.

    Instead of being one for loop, with one condition, you can do multiple ifs and recurse under multiple constraints or conditions.
  • 0
  • 0
    @aviophile "so?"

    She said yes. We're getting married.
    Either we'll love each other till our hair falls out, or we're gonna be so miserable we get a divorce in five years.
Add Comment