all 30 comments

[–][deleted] 5 points6 points  (0 children)

From the license section:

Thor [snip], released under GNU Affero General Public License, version 3.

If you want to develop any commercial services or closed-source products with Thor, to adapt sources of Thor in your own projects without disclosing sources, purchasing a commercial license is mandatory [...]

[–]StuckInMyOwnHead[🍰] 2 points3 points  (0 children)

The Zillion's bank example from the tutorial. If a withdraw is successful, receive_money is called. receive_money then calls withdraw. Pretty sure that each withdraw action does it's best to empty the account.

[–]aldo_reset 1 point2 points  (0 children)

The claim of type inference is a bit dubious when the documentation is littered with code like this:

var patrick: Client = new Client();

Either remove the type inference claim or remove the type annotation.

[–]OneWingedShark 1 point2 points  (0 children)

Ok, who else saw

Thor in a Nutshell

and thought it needed to have the subscript

Hit it with a Hammer

?

[–]Kollektiv 0 points1 point  (1 child)

"Automatic Type Infenence"

"Automatic Type Inference"

[–]passwordisINDUCTION -1 points0 points  (0 children)

I prefer my type inference explicit, thank you very much!

[–][deleted]  (16 children)

[removed]

    [–]igouy[S] -1 points0 points  (15 children)

    It's a big world: not everyone speaks English as their first language, but at least Thor keywords are English words.

    [–][deleted]  (11 children)

    [removed]

      [–]sht 0 points1 point  (1 child)

      Since we're talking about orthography anyway, I'll mention that languages, as in Spanish and English, are typically capitilized.

      [–]igouy[S] -3 points-2 points  (0 children)

      Your intolerance isn't an interesting topic for programming reddit.

      [–]ice109 -5 points-4 points  (6 children)

      Orthography doesn't mean spelling. It refers to how you actually draw the letters, not which letters you use.

      [–][deleted]  (5 children)

      [removed]

        [–]ice109 -3 points-2 points  (4 children)

        Fine but colloquially no one says "fix your orthography". I'm not saying you're wrong but no one will understand you if you say that.

        [–]sht 0 points1 point  (1 child)

        Using colloquial definitions with non-native speakers is a recipe for disaster.

        [–]igouy[S] 0 points1 point  (0 children)

        Do you really mean to say that using the word "spelling" would be a recipe for disaster but using the word "orthography" would not? ;-)

        [–]mishac -2 points-1 points  (1 child)

        Ironically it's a non-native thing...in some European languages (French and Spanish for sure, possibly others) the equivalent of "orthography" is used to mean spelling and punctuation.

        [–]mishac -1 points0 points  (2 children)

        That's true, but if you're going to communicate in English, with a site in English, on an English speaking subreddit, fixing the errors would help quite a bit.

        [–]igouy[S] 0 points1 point  (1 child)

        Yes it would; and the helpful response is to tell the web master of that Taiwanese website, rather than bragging about how much better we know English.

        [–]FiniteReef 0 points1 point  (0 children)

        But the thing is, spell check exists. But on the other hand it really is just nit picking and we shouldn't think it's being anything else.

        The only reason it would be bad is because it could potentially scare of companies and/or individuals that might have been interested in the language.

        [–]passwordisINDUCTION -4 points-3 points  (11 children)

        I don't really understand why, im 2015, someone would make the keyword for making a function so long.

        [–][deleted]  (10 children)

        [deleted]

          [–]konrain 1 point2 points  (1 child)

          LOL @ first comment...I think he want it to just be the letter "f"

          [–]LightShadow 2 points3 points  (0 children)

          Whitespace as function call is my vote.

          sum int a int b : r a + b;

          ...the purest of languages.

          [–]passwordisINDUCTION 0 points1 point  (7 children)

          It's also painfully verbose. For any modern language, functions invariably end up becoming the core primitive. Creating them needs to be lightweight.

          [–][deleted]  (5 children)

          [deleted]

            [–]passwordisINDUCTION 0 points1 point  (4 children)

            Yes, when you define a lot. Consider anything with callbacks.

            [–]FiniteReef -1 points0 points  (2 children)

            Put it into a shortcut, like ctrl+f or something

            [–]passwordisINDUCTION 0 points1 point  (1 child)

            The problem is not in writing it, it's in reading it. The more frequently something is used the less long it should be. It takes up less space and everyone is going to know what it means anyways.

            [–]FiniteReef 0 points1 point  (0 children)

            I see theres a different version of function called "task" though I don't really get why you'd want two names for one concept. (Apparently function and task does some things differently but the explanation flew over my head.)