atom icon indicating copy to clipboard operation
atom copied to clipboard

API and logic for optional or not-optional members?

Open metaperl opened this issue 2 years ago • 1 comments
trafficstars

  1. If defining a member is optional what syntax is used?
  2. If a member must be defined when constructing an instance, what syntax specifies this?
  3. If a member is optional and no default value has been specified what happens?

metaperl avatar Jan 27 '23 08:01 metaperl

Atom does not generate automatically an __init__ so by default you can always create an instance. Extending the API to generate meaningful init by default is on my mind but I do not have a concrete plan yet.

MatthieuDartiailh avatar Jan 27 '23 10:01 MatthieuDartiailh