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

Update README.md #720

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update README.md #720

wants to merge 2 commits into from

Conversation

gabenugget
Copy link

Added extra stuff that standard DreamBerd users were begging for.

Added extra stuff that standard DreamBerd users were begging for.
@TodePond
Copy link
Owner

TodePond commented Aug 19, 2024

I wonder if negative equals could be used in declarations

const const name ;= "Bob"!

print(name == "Bob")! // false
print(name == "Lu")! // maybe

@guigui0246
Copy link

I wonder if negative equals could be used in declarations

const const name ;= "Bob"!

print(name == "Bob")! // false
print(name == "Lu")! // maybe

"But be careful, as ;= returns a error. Instead, use ≠, ≠≠, ≠≠≠ and ≠≠≠≠"

So it's

const const name"Bob"!

print(name == "Bob")! // false
print(name"Bob")! // true
print(name == "Lu")! // maybe

@guigui0246
Copy link

And of course:

var var name"Bob"!
name ≠≠ "Bob"!

print(name == "Bob")! // maybe
print(name"Bob")! // false
print(name == "Lu")! // maybe

@gabenugget
Copy link
Author

Hear me out:
ces: code execution speed.
eg. ces = 0.05 runs 20 lines per second.

@guigui0246
Copy link

For folders you could just do something like this:

===== /src/add.db =====
function add(a, b) => {
   return a + b!
}
export add to "../main.db"!
export add to "../misc"!

===== main.db =====
import add!

===== /misc/misc.db =====
import add!

===== /misc/test.db =====
import add!

(I think it's cleaner)

No because:

  • / is for division (six/two and three are the same so ===== six/two ===== and ===== three ===== are the same)
  • you need to put the folder name at every file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants