James Clark
James Clark
I don't think the interaction between isolated and external functions is properly worked out. This also relates to considering `handle` as readonly. I think maybe we need to allow handles...
Relates to #52.
Please make https://github.com/ballerina-platform/ballerina-spec/issues/855#issuecomment-847628869 a separate issue.
Can we make a query expression work? ``` from var f in self.array select f ```
See https://github.com/ballerina-platform/ballerina-spec/issues/1088#issuecomment-1339548116
I think part of the problem here is that we treat all numeric conversions the same, but they're not. The point of cloneWithType doing conversions is to get a similar...
The spec https://ballerina.io/spec/lang/master/#section_6.7.1 is not super clear here, but, as written, the filler value is not considered when figuring out which member of the union to use.
Related to this is what is role of when choosing inherent type for mapping constructor.
Another point is whether fromJsonWithType/cloneWithType should use filler values. I don't think they should.
I think the principles are: 1. we should encourage code to be explicit except where this would be unacceptably inconvenient 2. fromJsonWithType should work sensibly with types generated from OpenAPI...