On 23/08/26 03:08PM, shane.qian wrote: > > > If "public" is omitted, shouldn't class members and method be private by > > > default just like "def" functions > > > and script variables are script-local by default unless prefixed with > > > "export"? > > > > > > > Currently object/class methods are always public and the object/class > > private methods > > are not supported. > > > > If "public" is omitted, then object/class member variables are > > read-only. With "public", > > the member variables are read/write. If the member variable name starts > > with an > > underscore, then it is private. > > > > > > > > In general, I would also like it to be symmetric. So, either introducing > > > "public" and "private" together, > > > or no modifier keyword at all. In the latter case an underscore indicates > > > private class members and > > > methods whereas public ones don't have an underscore. > > > > > > > I prefer using the underscore character to differentiate between > > public and private methods. > > I will create a PR to add support for private object/class methods. > > > > i wish you can re-consider, keyword `private` with existed > `export/public/static` looks more natural. > // i had pointed out this in another thread mail, but i'd like to say again > :-) > > > > > > > And another issue: why isn't this thread shown in GitHub Discussions? > > > Wasn't the whole point of enabling > > > Discussions so that more people can participate in such decision making? > > > > > > > I am used to sending emails to the mailing list. So I started this > > email thread. > > We can use Github discussions going forward for other features. > > > > i think it's OK (in vim_dev mailing list), basicly this a dev or design > related things, may not require wild discussion. >
Or actually i am curious who would use vim9 script to write complex OOP script? who would really use interface/abstract/class with using all those keyword -_-# perhaps basic class support was good enough, so far i cannot image who would do -- shane.xb.qian -- -- 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/OS3P286MB0913396EE98E84ACE33E5B43EBE2A%40OS3P286MB0913.JPNP286.PROD.OUTLOOK.COM.
