Skip to content

Commit 2d08ed5

Browse files
committed
fixup! Add EEP for native records
1 parent 67e7525 commit 2d08ed5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

eeps/eep-0079.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ Expr#Module:Name.Field
324324
These expressions return the value of the specified field of the
325325
native-record value.
326326
327-
When a field from a native-record value is accessed, the native-record
328-
definition is **not** consulted.
327+
When a field from a native-record value is accessed, the current
328+
native-record definition is **not** consulted.
329329
330330
An access operation fails with a `{badrecord,Expr}` error if:
331331
@@ -371,8 +371,8 @@ Expr#Module:Name{Field1=Expr1, ..., FieldN=ExprN}
371371
372372
Field names must be atoms.
373373
374-
When a native-record value is updated, its native-record definition is
375-
**not** consulted.
374+
When a native-record value is updated, its native-record
375+
definition is **not** consulted.
376376
377377
An update operation fails with a `{badrecord,Expr}` error if:
378378
@@ -578,9 +578,7 @@ Native records that can be used as types using the following syntax:
578578

579579
```erlang
580580
%% local or imported native-record
581-
#RecordName(TVar1, ..., TVarN)
582581
#RecordName{TField :: TType, ... }
583-
#RecordName(TVar1, ..., TVarN){ TField :: TType, ... }
584582
%% remote native-record
585583
#Module:RecordName(TVar1, ..., TVarN)
586584
```
@@ -604,11 +602,11 @@ Example:
604602
second :: B
605603
}.
606604
-type int_pair() :: #pair(integer(), integer()).
607-
-spec mk_user() -> #user{}.
605+
-spec mk_user() -> #user().
608606
mk_user() ->
609607
#user{id = 1, name = ~"Alice", city = ~"London"}.
610608

611-
-spec mk_user_limited() -> #user{}.
609+
-spec mk_user_limited() -> #user().
612610
mk_user() ->
613611
#user{id = 1, name = ~"Alice", city = ~"London"}.
614612

0 commit comments

Comments
 (0)