-
|
I don't want to sound harsh, but the API reference is practically useless. Take the One thing you notice immediately: it's way too short! There can't possibly be so few methods available. Compare it to the Java or .NET API references and you'll see how abnormal this is. There's not even an Anyway, I tried adding an element using the index, and the compiler accepted it. But then And to make things worse, I can't find a single example of how to use I can't say whether the
I've never written such a long rant before. This whole experience was exhausting, confusing, and deeply frustrating. I spent an entire afternoon and got absolutely nothing out of it. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 9 replies
-
|
There is a method to add an element to the array. You just need to look at the methods: As I tried to explain it many times, please always provide the code snippets. As for collections there are plenty examples how to work with them. More than 200 - https://rosettacode.org/wiki/Category:Elena There is no method PrintLine at all. The general principle is to have methods in lower cases. printLine is an extension. So to look at it you have to take a look there: https://elena-lang.github.io/api/extensions.html#Object
The general idea is that printLine is polymorphic and can be used with different objects. And about frustration. You could just asked me how to do it and I would help with it. So it would be much better instead of rants, help me with writing tutorials for example |
Beta Was this translation helpful? Give feedback.
-
|
And from my experience, it is perfectly normal to spend many days in frustration looking for the solution. In fact it is a part of the job. This is how you learn |
Beta Was this translation helpful? Give feedback.
-
|
You can look at the example how to print an element: examples60\rosetta\arrays\ There are plenty of ways how to work with collections. You can work with them like with arrays: Or as with an enumarable: Or |
Beta Was this translation helpful? Give feedback.
-
|
Do you think this is a good warning? What does this warning mean? I'm having difficulty interpreting it. The existence of the message should be binary — it either exists or it doesn't. The phrase 'not handled by the object' is ambiguous. Does it imply the object lacks a method to process the message, or that the message is invalid for this object type? |
Beta Was this translation helpful? Give feedback.
-
|
By the way, sometimes I see |
Beta Was this translation helpful? Give feedback.
-
|
Take the It mentions a method named I assumed it was meant to preallocate memory for performance reasons, so I tried calling There's also another method called |
Beta Was this translation helpful? Give feedback.
-
|
My opinion about the API reference remains unchanged: it's practically useless. It's just a table listing classes and methods, but it doesn't include any descriptions of what those classes and methods actually do. Could you put a bit more care into it so it becomes something genuinely useful? You're the only one who can — I can't help. I'm not the one who wrote the code. |
Beta Was this translation helpful? Give feedback.
-
|
I have something to talk about the Programmer Manual, too. It doesn't say anything about You said I should help writing tutorials — but I need to actually understand the language first. How am I supposed to learn it properly? By digging through the C++ source code? Oh man... |
Beta Was this translation helpful? Give feedback.
-
|
I calmed down and decided to go with Objective C. No more hiccups. |
Beta Was this translation helpful? Give feedback.


You can look at the example how to print an element: examples60\rosetta\arrays\
There are plenty of ways how to work with collections. You can work with them like with arrays:
Or as with an enumarable:
Or