Hi,

On Tue, Aug 29, 2023 at 9:08 AM errael <[email protected]> wrote:

> readonly is working AFAICT. I still need to put together some tests. I
> can't try writing to a readonly static because of the compilation failure
> bug that prevents writing to class statics. One nice thing about readonly
> is that it doesn't affect anything unless you use it.
>

One of the goals of the Vim9 script is to be similar to other widely
scripting languages (like
typescript and python) and simple to use.  I am not sure whether any other
OO language
supports the "readonly" keyword.  Can we keep it simple and make the
methods/members
either private or public?


> I'm going to put this on the shelf while I put together the PR for
> preventing writing to private members.
>
> The readonly PR is based on this PR. So this PR, #12932
> <https://github.com/vim/vim/pull/12932>, has to go in before I can open a
> PR for readonly. Is this PR ready to go?
>
>
> This PR can be merged based on the outcome of these discussions.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7n7PFkcNfCejMYGJiTYk-13MQYMWpRw2LiFCs09CJ6_jQ%40mail.gmail.com.

Raspunde prin e-mail lui