Dreaming

V

Voltaire

Dreaming about a day when:
I can use '{' '}' instead of begin ... end, def \n ... end, etc.
more similar to c++
Space as an array delimiter eliminated,
and using plenty of spaces before argument parentheses.
Last but not least: implemented in c++ in a way that the source
can be dumped as c++ code including the ruby headers for
collections ... (whatever needed, smt like C++ STL)

Is that possible | long away ? :)

Anyway thanks for a wonderfull language
 
A

Aleksei Guzev

Dreaming about a day when:
I can use '{' '}' instead of begin ... end, def \n ... end, etc.
more similar to c++
Space as an array delimiter eliminated,
and using plenty of spaces before argument parentheses.
Last but not least: implemented in c++ in a way that the source
can be dumped as c++ code including the ruby headers for
collections ... (whatever needed, smt like C++ STL)

Is that possible | long away ? :)

Anyway thanks for a wonderfull language

Readable code would be nice. Code docs, structures, typedefs for strings,
chars, bytes would allow better optimization and easier porting. But Matz
does not want to do this :( It's to his own decision, because we (at least
me) do not pay to him for the perfect language. If someone will rewrite
the code in C++ how can one apply updates and patches from the cvs?

Aleksei Guzev
 
R

Robert Klemme

Voltaire said:
Dreaming about a day when:
I can use '{' '}' instead of begin ... end,

"begin ... end" is much more readable in cases like this, which are all
too common:

begin
# do stuff
rescue
# oops, error
ensure
# cleanup
end

This does not fit well into the { ... } scheme.
def \n ... end, etc.

Hey, that's just six keystrokes that you want to reduce to two. Is that
worth the effort?
more similar to c++

Why should that be a good thing? I always found that Ruby's syntax is
nice and easy to learn.
Space as an array delimiter eliminated,

Don't know what exactly you mean by this.
and using plenty of spaces before argument parentheses.

This was deliberately changed in 1.8 to reduce ambiguities like

puts foo bar

See the other threads about the topic.
Last but not least: implemented in c++ in a way that the source
can be dumped as c++ code including the ruby headers for
collections ... (whatever needed, smt like C++ STL)

You mean, you want to compile Ruby code into C++ code? IMHO that's asking
for much especially since C++ is less portable than C.
Is that possible | long away ? :)

Both. :)
Anyway thanks for a wonderfull language

Yeah, *that's* true!

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,137
Messages
2,570,797
Members
47,342
Latest member
eixataze

Latest Threads

Top