Live data from Hacker News

DreamBerd is a perfect programming language

github.com

61–70 of 215 posts

Re: DreamBerd is a perfect programming language

#62
post #55
post #13

const var scores = [3, 2, 5]! scores[0.5] = 4 print(scores) //[3, 2, 4, 5]! Genius! This trivially solves the problem of reading integer and floating point numbers from input and inserting them into a sorted array. Too bad there are no loops in this language. (Remember that arrays start from -1.)

I wonder what the behavior of scores[-2] = 4! is. Or, for that matter, of scores[-1.1] = 4! (Assuming that -2 and -1.1 haven’t been deleted.)

The first one would place 4 at the start of the array. So would the second one.

If you did the first, then the second one, two 4s would be placed at the start.

Re: DreamBerd is a perfect programming language

#63
post #55

Earlier quoted context omitted.

I wonder what the behavior of scores[-2] = 4! is. Or, for that matter, of scores[-1.1] = 4! (Assuming that -2 and -1.1 haven’t been deleted.)

The first one would place 4 at the start of the array. So would the second one. If you did the first, then the second one, two 4s would be placed at the start.

But arrays start at -1. How would that work?

Re: DreamBerd is a perfect programming language

#64

  Using the word 'DreamBerd' in your project name implies that the DreamBerd Foundation does not own your project.
  
  However, not using the word 'DreamBerd' in your project implies that the DreamBerd Foundation does own your project. If you would like to keep ownership of your work, please always use the word 'DreamBerd' in it.
  
  Here are some examples:
  white_check_mark DreamBerdScript (not owned by the DreamBerd Foundation - you are free to use this name)
  x ECMAScript (owned by the DreamBerd Foundation - please consider renaming)
  x Rust Foundation (owned by the DreamBerd Foundation - please consider renaming)
Maybe the author should actually take over the Rust Foundation.

Re: DreamBerd is a perfect programming language

#66
post #63

Earlier quoted context omitted.

The first one would place 4 at the start of the array. So would the second one. If you did the first, then the second one, two 4s would be placed at the start.

But arrays start at -1. How would that work?

You can insert items before the start

Re: DreamBerd is a perfect programming language

#68
post #10
post #7

Delete To avoid confusion, the delete statement only works with primitive values like numbers, strings, and booleans. delete 3! print(2 + 1)! // Error: 3 has been deleted HAHAHAHAHA

DreamBerd is a multi-paradigm programming language, which means that you can delete the keywords and paradigms you don't like. delete class! class Player {} // Error: class was deleted When perfection is achieved and there is nothing left to delete, you can do this: delete delete!

delete = previous delete!!

Re: DreamBerd is a perfect programming language

#70

Earlier quoted context omitted.

Breathlessly approving tone of a language readme: Readmes on Github, especially for languages, often have a recognizable tone. Look how cool this is! Isn't this so neat!? Why would you ever do it differently!? Comedic timing (in text): Most prose is written under the assumption that it will be read in order- ie, from beginning to end. For instance, you likely read the word "beginning" before you read the word "end" i…

[flagged]

My apologies. Please take the first ":" of the first paragraph and replace it with the following string: " is as follows:".
Post reply on HN