I love dart's approach to getter and setter methods... They let you define methods labelled explicitly as "get" or "set" methods that you can call without writing the parentheses. So the call looks like accessing a member variable, but internally it can handle additional functionality like logging or validation or whatever you want. So the syntax would look like the first example in the meme, but with all the benefits of the second example. I wish more languages would incorporate this
Is there a limit on the number of posts you can save to your account? From what I know, reddit and Instagram both have a hard limit on the number of posts that a user can save before the older ones start getting forgotten. Does lemmy have any such restrictions?
watermelonsushi
joined 1 year ago
Which will be violently yeeted away by compiler optimisation