James Clark

Results 138 comments of James Clark

If we try to make `readonly` mean effectively-readonly, we are going to have a problem with readonly objects vs isolated objects. These are two different things at the moment: a...

Let's explore the other approach, where the meaning of `readonly` remains true-readonly. We need multiple changes to make this work. ## More flexibility in declaring immutability of types ### Allow...

@MaryamZi Please see if you can find any holes in the [above proposal](https://github.com/ballerina-platform/ballerina-spec/issues/1244#issuecomment-1541355911).

YAML has the concept of _scalar_ nodes, which are defined as "an opaque datum that can be presented as a series of zero or more Unicode characters". Scalar nodes (like...

The concept for the language feature is to introduce a new basic type, called string-formatted data, or sdata, for representing data that is conventionally represented in a specialized string format....

The definition provides the following information: * a tag name: this is an unqualified identifier, restricted in the same way as a module name), which uniquely identifies the format and...

sdata values support the following operations: * s1 == s2 is true if s1and s1 belong to the same sdata named subtype and their underlying values are == * ===...

There is a langlib module lang.sdata that is the langlib module for this new sdata basic type, which provides the following: * a definition of sdata:Any as a type that...

The standard library provides a `ballerina/data` module. The `data` prefix is predeclared to refer to ballerina/data. For every named subtype with type name _T_ (both platform-defined and language-defined), the ballerina/data...

Currently we have two kinds of equality: * equality: the `==` operator uses this * exact equality: the `===` operator uses this There are two differences between equality and exact...