Open bates64 opened 7 years ago
We might want to reconsider why Haumea exists..
Also although the language is "simple and easy to learn and program in.." should it be?
I feel like set kek to "lol"
isn't easy - it's a little verbose opposed to kek = "lol"
If the language is simple and easy, perhaps it should be "easy to learn" instead, because a simple & easy language doesn't give us (or users!) growing room.
I like let
instead of set ... to ...
, but I want to keep display
instead of switching to console.log
.
Maybe you could add something like Ruby's blocks.
@birdoftheday check the spec! We have blocks.
if 1 = "kek" do
display("blox")
other.command()
end
bad link?
@nanalan Do you have yield
?
In what way?
Overall I think the language is too verbose and tries to be different and unique just for the sake of being different and unique.
It's not a bad thing, just something that subconsciously comes from designing something (a language that compiles to JavaScript) where there are hundreds of other things that do the same exact thing. I think you should focus less on having unique features and syntax, and more on having useful features and syntax.
Totally agree with you there. We'll need @BookOwl's input on this too.
RE Yield:
When a block is attached to a function like so,
to forever
while 1 = 1 yield
end
then you could do something like this
forever do
display 'hi'
end
(just pseudo Haumea)
You guys are forgetting that Haumea is not designed to be "real" programing language with amazing features. It was designed to do two things:
It has already done 1, and if it is determined that it would be better for beginners to learn with a language that has more traditional syntax, than 2 has succeed also.
Then examine each for its individual merit.
Is the keyword with
really necessary? Is to
really that versatile?
Is set
and to
the best, most readable syntax for the job?
We might want to reconsider why Haumea exists..
You guys are forgetting that Haumea is not designed to be "real" programing language with amazing features.
...we've done that, been there - designing an "easy to learn" language almost never means that it's easy to program in - it's often much to verbose.
Learning to program is like climbing a mountain - at the bottom there are loads of people to help you up. In the middle, there's almost no one. Why? Lo-and-behold, everyone who got to the top is now running "Learn Python for beginners" classes at the bottom.
We need a universal language that isn't domain specific and isn't specifically designed for a target market other than 'programmers,' imho. We've completed reason no 2 and the answer is no - can we move on and make the language actually good now? 😜
In my opinion, we should study our favourite languages and take the best from them- leaving the worst behind. That'll make a good language. Probably.
We should probably just start over from the ground up.
In my opinion, we should study our favourite languages and take the best from them- leaving the worst behind. That'll make a good language. Probably.
As long as we adapt them to be consistent with the rest of language. That's how Python has gotten to be so popular. It takes features that have been found to be very useful in other languages and adapts them to be Pythonic.
Here's my 2 cents on what you should design the syntax on, in most to least important:
set a to 2
. You can make it clearer by clearly delimiting where things start and end, like a = 2
or even just set a = 2
At the moment, Haumea has less features than JavaScript. This is bad, because it's primarily what we compile to now.
This rings true - why write the verbose
when you could write