Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: function create #734

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,34 @@ When perfection is achieved and there is nothing left to `delete`, you can do th
delete delete!
```

The `delete` function works globally. If you need to use a deleted function in some other project, you must `create` it again:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete only delete the keyword not the action and only delete in the current program/file/function. You can also do that to get it back later

const const _ = class!
delete class!!!
class Player {}! // Error: class was deleted
const const class = _! // Do nothing because less ! than the delete
class Player {}! // Error: class was deleted
const const class = _!!!
class Player {} // OK!


```java
delete class!
class Player {} // Error: class was deleted
create class!
class Player {} // OK!
```

To enforce minimalistic programming, you can `delete` `create`:

```java
delete create!
create class! // Error: create was deleted
```

If you need to use it, you must `create` it again:

```java
delete create!
create class! // Error: create was deleted
create create!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot create create if you deleted create

create class!
class Player {} // OK!
```



## Overloading

You can overload variables. The most recently defined variable gets used.
Expand Down