Odin will take your jobs

https://rm4n0s.github.io/posts/5-it-will-take-your-job/

7 Likes

Haha. That was a great read. The best evidence (for the learning curve) is seeing people come into the discord brand new to the language providing thorough, correct answers to other new people within a week.

2 Likes

Nice article. I’m very impressed with Odin. I just took your error handling challenge in my other favourite language, F#: Odin Error Challenge in F#, see: https://rm4n0s.github.io/posts/3-error-handling-challenge/#odins-teachings-in-action · GitHub

1 Like

Sir your implementation is beautiful. I put your solution first in the list.

Congratulations for passing the challenge!

1 Like

Blimey! Thanks very much. I’m just flying the flag for the much underappreciated F#. I’m grateful to you for providing the opportunity to show off its discriminated union feature, which has been making programming a joy for me since 2005.

1 Like

I updated the original gist to give a link to https://sharplab.io/, which will run the code if you paste it in. The code now runs the main program 10 times to exercise the random element, and I made every error string unique, so that you may verify which error is using which string. Odin Error Challenge in F#, see: https://rm4n0s.github.io/posts/3-error-handling-challenge/#odins-teachings-in-action · GitHub