Skip to content

Commit c2e5eef

Browse files
committed
new functions
1 parent be0024a commit c2e5eef

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

drafts/records.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,10 @@ A `record` cannot share its name with an existing `record`,
632632

633633
Records will be autoloaded in the same way as classes.
634634

635+
### New Functions
636+
637+
- `record_exists` will return `true` if a record exists and `false` otherwise. It has the same signature as `class_exists`.
638+
635639
## Backward Incompatible Changes
636640

637641
To avoid conflicts with existing code,

published/records.ptxt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ A ''%%record%%'' cannot share its name with an existing ''%%record%%'', ''%%clas
555555

556556
Records will be autoloaded in the same way as classes.
557557

558+
==== New Functions ====
559+
560+
* ''%%record_exists%%'' will return ''%%true%%'' if a record exists and ''%%false%%'' otherwise. It has the same signature as ''%%class_exists%%''.
561+
558562
===== Backward Incompatible Changes =====
559563

560564
To avoid conflicts with existing code, the ''%%record%%'' keyword will be handled similarly to ''%%enum%%'' to prevent backward compatibility issues.

0 commit comments

Comments
 (0)