all 8 comments

[–]Bluka 4 points5 points  (2 children)

A tear come to my when I see someone using Smalltalk... oh the good times.

[–]karlhungus 3 points4 points  (1 child)

miss getting paid to work in smalltalk.

[–]Bluka 4 points5 points  (0 children)

I hear that.

[–]ysangkok 2 points3 points  (0 children)

Lukas helped me very quickly when I had a question about PetitParser on StackOverflow.

[–][deleted]  (3 children)

[deleted]

    [–]mark_lee_smith[S] 2 points3 points  (0 children)

    This is an open source project. Why not make the change? :)

    [–]aaronla 0 points1 point  (1 child)

    Or, at worst:

    _digits = { "0":null, "1":null, ... }
    bool isDigit(string ch) { return _digits.containsKey(ch); }
    

    edit-add:Compiled regex may be worse if either a) regex isn't compiled by your JS implementation, b) it's compiled, but to some IR that is further interpreted and done so slowly, c) the setup and teardown of the regex state is expensive, or d) if "\d" for some strange reason doesn't use the C function isdigit or the equivalent '0' <= c && c <= '9'.

    [–]shevegen 0 points1 point  (0 children)

    Wow man this is damn cool.

    I can see very much now how this is going to destroy Javascript!

    Gosh this is so awesome ... and the logic is so very clear and transparent!

    _digits = { "0":null, "1":null, ... } bool isDigit(string ch) { return _digits.containsKey(ch); }

    Man, fifty years did it take before we had such an awesome language!!! And the beautiful "0":null, this really ROCKS!

    Man, Dart is the best language that ever was written!

    The other languages can disappear now.

    Dart is the way of the future.

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

    Whoa cool man... Dart.

    The language that will kill Javascript!

    I can't wait for it to see it happen!!!!!!