-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
concatenanation (++) on a Symbol should stay a Symbol #1830
Comments
Yes this might be right. But to be sure, let's see the way it evolved. In earlier versions of sclang, Later, we decided that it was not so good that you had to write a conversion explicitly in the case of Now indeed, Here is and overview of the current cases:
(edit) Here is the same divided into two groups:
|
So one thing that we should keep in mind: if you do something like the following:
this will create 1000 new symbols in the symbol table, if you change the current behaviour. while it can be written like this, without this side effect:
If I see it correctly, we already have a "leak" in the symbol table when you varying send strings over OSC, but that is another issue: #1029. |
ok that is to some degree an issue when you do something like The other cases of non-uniformity are logical two chars are a string i would say. I am unsure about the behaviour of Nil.
|
I am not sure, it may amplify the issue described above when generating a lot of names. In any case, should we change it, we should not forget to document that the new usage is
You can use them directly: The |
On the mailing list a reoccurring question is why does a concatenation (++) of a symbol with something else does not stay a Symbol.
As other implementations of ++ are also aware of the Species of what is concatenated I suggest that it would be appropriate when Symbol would do the same.
The text was updated successfully, but these errors were encountered: