errael
errael
> We can support the "__str()" method to get a user-defined textual representation of the object. I like that; currently define ToString() methods as needed, using a builtin is easier....
As mentioned by @ychin > I think technically you can implement dunder methods first, and then have interfaces for these capabilities retroactively though. I'll take it for a test drive...
(I'll download and play with it, but some initial comments) > I have simplified the support for using the builtin methods like empty(), len() and string() with an object. Now,...
> A regular object method name cannot start with a lower case letter. So these builtin functions will not overlap with regular object methods. Of course, I was hallucinating, apologies...
> We could add builtin interfaces with names starting with a lower case letter (as a user defined interface name cannot start with a lower case letter). The `len()` and...
In my previous comment I screwed up with the methods by including the implicit "self" in the function signature, like for `list`'s `add()` should be ``` def add(item: T): void...
May be related to #13433
> compile every function/method in the project all at once Should read "every file and every function/method".
Here's some notes that started with a comment in #13844. ### Sketch of creating vim9script names xref and where used" Scan each vim9script file in a project and for each...
The following was lost from the original post: It seems I am not the only one as multiple runtime files do this even though this is not safe according to...