grace
10/29/2023, 10:34 AMefemoney
10/29/2023, 10:50 AMdo you think people should learn java first so that they can understand kotlin?Not necessary. Annotations are not like comments. Think of them like metadata that is added to code. What purpose the metadata serves however can range from a long list of things. You can have metadata that serves only to document the annotated code (in that case like a comment), you can have metadata that means that the annotated code changes behavior in specific or all situations, you can have metadata that is specifies to some higher level tools to pre or post process the annotated code for arbitrary reasons… I would say dont worry too much about annotations now, when the use cases pop up you will learn and know how to define/use them.
grace
10/29/2023, 10:56 AM