Dave Cunningham

Results 152 comments of Dave Cunningham
trafficstars

It's not too bad but I can see why you'd rather write it with 0-9A-Za-z type ranges and on one line. ``` local is_alpha(x) = std.setMember(x,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"); local to_alpha(str) = std.join("",...

tr-like functionality is definitely a good candidate for stdlib.

Since this has come up again - do we have compatible implementations of PCRE in Go and C++ that will work with unicode?

Yeah I think unless we can find a library that has native Go and C++ support (for exactly the same regex syntax) we'll have to leave regexes as something that...

In that case I guess RE2 is the way forward after all :)

Yes it'd be a way to allow people to write scripts that can import "untrusted" JSON, i.e. JSON that worst case has bad values in it, not JSON that reads...

@gotwarlost You could probably use an import handler instead of a native function for that

I wonder if it would be more appropriate to provide separate file and path, and the path would always be absolute. That would go hand-in-hand with sandboxing file access according...

I honestly can't remember why I chose 3 spaces but it's been there since the beginning. I wonder how disruptive it would be to change this? People who check generated...

What's the status exactly? If it's in go-jsonnet already then you can use jsonnet and jsonnetfmt from there.