The arrayList is deprecated?



I notieced that in M4, the usage of “arrayList” is deprecated and recommended to use “arrayListOf” instead. What’s the reason for adding “Of”? I prefer the name to be shorter, and failed to see how “Of” is any more clear or better.

Also, how come deprecation is not showing in the API doc here:

Also, it would be useful to clearly stating which verion of kotlin does the API doc is actually generated from.



For the first question read "Support for Deprecation" in

+1 for the docs.