Simon Ask Ulsnes

Results 63 comments of Simon Ask Ulsnes
trafficstars

That would be one way to do it. A more robust way would be to let .date return a copy of the Time object with h, m, s set to...

There is a major issue here: How do we determine the name of a function? The obvious answer is to name the function the first time it is assigned to...

The parser is oblivious to the file name (it just sees a stream or a string), and the line number is just a counter that's incremented everytime it sees \n....

There is now preliminary (and insufficient) support for generating slightly useful stack traces, across both C++ and Snow code. Reducing the priority of this issue for now.

One point of discussion: Should the Regular Expression class in Snow be called "RegExp" (like Ruby), or "RegEx" (in accordance with what people actually say when they talk about regular...

A regular expression is different from a string, because a regular expression also carries options beside the pattern itself: g, i, m, x, etc. In addition to that, concatenating regular...

Good idea. Could definitely work. ``` if my_string =~ $('^mooh$', 'i') ... do something end ```

By the way, Snow was compiled with these cflags: ``` -Os -m64 -pipe -fomit-frame-pointer ``` The "puts" call creates some unnecessary uncertainty, as the benchmark suddenly becomes I/O-dependent.

@astigsen Good points — I will admit that I'm subconsciously almost writing off the macro approach at this point, and perhaps I'm therefore not doing justice to its merits. It...

Great to see some new suggestions! @tgoyne As far as I can tell, your second suggestion can also support a statically checked interface, along these lines: ``` c++ REALM_PROPERTY(int, foo);...