On Tue, Jun 19, 2012 at 1:56 AM, Juraj Kirchheim
<
back...@googlemail.com> wrote:
> Workarounds yes, but through macro they can be typesafe and have any
> features you want.
> I'd be very careful with more literal syntax. I already find the
> ambiguity between an empty block and an empty object very disturbing.
> How should an empty hash literal look like?
that is a good point, that is the kind of thing that is important to
seek out and work through.
overall however i would suggest that given the existence of hash
literals in other languages, haxe has to have them, even if they can
lead to some confusions in places. hopefully such confusions would be
eliminated by manually specifying the type of the receiving variable?
(better than nothing.)
>> * there's no haxe.ObjectHash.
>
> AFAIK Simon is working to implement this across all platforms. I am in
> no position to give reliable information, but I suspect it will be
> available no later than Haxe 3.
yeah, from the mailing lists it sounded like it was in progress
somewhere, but i never saw any other clear evidence / dates. it is ok
to say "we'll get there!" but it is bad to say (1st) haxe is great!
leave your ruby/python/java for us! (2) the new adopter gets burned by
no decent collections (3) the response is not "sorry yes we should be
more careful about (1)" but is instead to brush off the problem by
saying (4) "oh somewhere sometime maybe in the future it will all be
better".
i will certainly try it, thanks. somehow i had missed that particular
ObjectMap when googling. i did see polygonal and actuate's. :-)
>> * missing other things like a standard Set class (yes it took a while
>> for Java to get that, too ;-)
> Sets are easily created from maps. Sometimes using an array is cheaper though.
argh! this is the kind of thing that kills me. :-)
there is a range of what is easy to create from something else. we are
not all using assembly code. if "haxenext" is asking "why don't people
adopt haxe" and then say "oh we don't need apis, we'll just let
everybody *roll their own every single expletive time* they first come
to haxe" then gosh duh i wonder gee why people aren't adopting haxe...
(just because *you* (or me! or whomever!) apparently loves to write
and maintain things from scratch...)
> There's a whole number of collection libraries out there. Granted,
> polygonal is probably the most comprehensive one, but if it doesn't
> work for you, then it doesn't mean you can't find something else ;)
the problem is that i think this kind of thing should not be an
external library at this point. look at current versions of Java,
Python, Ruby. [now there is room for debate, of course, about the
details of those not-in-a-library but-in-the-core collections. java
collections are not very functional and groups like apache and google
put out huge bandaid wrappers around them to offer more fp style. but
no matter what, i think the state of core haxe collections vs. core
java, python, etc. collections doesn't stand up.]
no i don't have the code to commit to fix this.
no i don't expect anybody to snap their fingers and have it done yesterday.
what i would like is for people who are running the show to at least
clearly acknowledge where things are not good, where things are behind
vs. other languages, where things are causing people to drop haxe.
i'm still trying to use haxe. i'm still trying to make something real
with haxe to show off haxe and to get people in the contract house to
adopt it themselves as well. i want haxe to grow well, not either die
or be the good-but-more-rough-than-i-like thing it is today.
sincerely.