Skip to content

Commit

Permalink
[stdlib] Add comment to init(Hash)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyash-b committed Mar 18, 2024
1 parent 9ec0eed commit 1564882
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/stdlib.ngs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ F nop(*args, **kwargs) null

# === Trivial init() helper ===

# TODO: rethink when HashLike will be gone, probably args() should return a subtype of Hash or
# something else entirely and this init() should handle that type.
doc Trivial initialization helper for init(o, ...)
doc Sets object fields from the supplied parameters
doc %EX - # sets t.a and t.b
Expand Down

0 comments on commit 1564882

Please sign in to comment.