James Clark

Results 508 comments of James Clark

Most of this has been done as part of adding #1132. We are calling these things tagged data type. Compared to what was described earlier, we haven't yet needed to...

Backslashes aren't significant in backtick strings. It wouldn't be compatible to change that, and I wouldn't want to in any case. I think you can do this, if you really...

This issue is *not* about whether there should be a recommended limit on the length of Ballerina source lines. If there is a limit, then the language already provides multiple...

What's the problem with the mechanisms I've suggested (whitespace inside the curly braces and concatenation). String templates are an alternative to string concatenation that are convenient in some situations. If...

I agree it's not pretty, but this is only needed when you want long output lines and you don't want to have equally long source lines. I don't think that's...

Hmm. JavaScript must have the same problem. Converting to null is reasonable solution for JavaScript, but if we do it, then we will get problems with schemas and round-tripping. Analogous...

Yes, they ought to be lax, but we don't currently have a mechanism for langlib to define lax types.

Two possibilities: 1. Say that `T & json` produces a lax type. 2. Introduce a langlib only annotation to specify laxness.

@MaryamZi When you've had a chance to think about, please comment on whether you are OK with 1 or still prefer 2.

But there's no point in lax access for `map` is there? The use case is when you want a type that's quite generic but not as generic as json. One...