Dave Cunningham

Results 152 comments of Dave Cunningham
trafficstars

You can now return anything, but native functions can still take only primitves.

``` def parse_yaml(str): return yaml.load(str) native_callbacks = { 'parse_yaml': (('str',), parse_yaml ), } ```

The test failed on mac gcc. It looked like a legitimate failure with the locale stuff but I didn't understand the error. I ran it again anyway, just in case.

Same thing: ``` terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid ```

My guess would be that it needs some packaged installed to get the right locale files. However I'm not sure why it works on clang but not gcc? Maybe they...

Realistically, we would move the C++ implementation out of this one into some google/cpp-jsonnet or whatever

I see we did lose some content in the new page http://jsonnet.org/ref/bindings.html That stuff was supposed to make it into the "language reference" since it's not actually Python specific, the...

@chrisleck had similar feedback in the context of maps and the same solution should be used for both cases

Re-opening because there ought to be a better solution for this

My preferred way of doing this is to extend the python composition syntax to allow things like [ 1, 2 if true, 3 if false ] == [ 1, 2...