Skip to content

Commit 9ed9988

Browse files
committed
fixup! Add EEP for native records
1 parent 06bad8e commit 9ed9988

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eeps/eep-0079.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ Examples:
485485
486486
is_user(U) when is_record(U, #user) ->
487487
true;
488-
is_user(U) when is_record(U, #some_module.other_user) ->
488+
is_user(U) when is_record(U, #some_module:other_user) ->
489489
true;
490490
is_user(_U) ->
491491
false.
@@ -523,7 +523,7 @@ code, it is better to use pattern matching to test for a record:
523523
524524
is_user(#user{}) ->
525525
true;
526-
is_user(#some_module.other_user{}) ->
526+
is_user(#some_module:other_user{}) ->
527527
true;
528528
is_user(_U) ->
529529
false.
@@ -639,6 +639,7 @@ reflection. This is a very preliminary sketch of how it may look:
639639
-spec get(record(), atom()) -> dynamic().
640640
-spec create(Module :: module(), RecordName :: atom(), FieldsMap :: #{atom() => term()}) -> record().
641641
-spec create(Module :: module(), RecordName :: atom(), FieldsMap :: #{atom() => term()}, Options :: #{ exported => boolean() }) -> record().
642+
-spec update(Src::record(), Module :: module(), RecordName :: atom(), FieldsMap :: #{atom() => term()}) -> record().
642643
```
643644
644645
This part needs more thought about enforcing and bypassing visibility

0 commit comments

Comments
 (0)