Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 758f83b

Browse files
author
Petr Knap
committed
Merge branch 'Update_README.md'
2 parents fab34dc + 2f44c64 commit 758f83b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Enumerated type for PHP by [Petr Knap].
1515
> In computer programming, an **enumerated type** (also called **enumeration** or **enum**, or **factor** in the R programming language, and a **categorical variable** in statistics) is a data type consisting of a set of named values called **elements**, **members**, **enumeral**, or **enumerators** of the type. The enumerator names are usually identifiers that behave as constants in the language. A variable that has been declared as having an enumerated type can be assigned any of the enumerators as a value. In other words, an *enumerated type has values that are different from each other*, and that can be compared and assigned, but which are not specified by the programmer as having any particular concrete representation in the computer's memory; compilers and interpreters can represent them arbitrarily.
1616
-- [Enumerated type - Wikipedia, The Free Encyclopedia]
1717

18+
1819
## Why use Enums instead of Constants?
1920

2021
Because **it is safer and less scary** than using constants. Don't trust me? Let see at this code:

VERSIONING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# About versioning
2+
3+
```
4+
+-------> changed signature of current feature, removed feature, changed interface, or renamed file
5+
|
6+
| +-----> added new feature, interface, or file
7+
| |
8+
a.b.c---> bug fix, performance improvement, etc.
9+
```
10+

0 commit comments

Comments
 (0)