--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Haxe" group.
Juraj - thanks for more examples. So wait, now it depends on whether you're using [] or dot access? I'm trying to to embrace Haxe for what it is, but "what it is" is no less of a mess than a typeless language. Types just mean there are different ways to do the same thing, more ways to describe the same things, and more confusion.
If types were the bees knees, then why are Ruby and JavaScript taking over? Why isn't Haxe exploding? The world doesn't buy it.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
If types were the bees knees, then why are Ruby and JavaScript taking over? Why isn't Haxe exploding? The world doesn't buy it.
Juraj - thanks for more examples. So wait, now it depends on whether you're using [] or dot access? I'm trying to to embrace Haxe for what it is, but "what it is" is no less of a mess than a typeless language. Types just mean there are different ways to do the same thing, more ways to describe the same things, and more confusion.Reflect.field, Map.get/set, Array[] -- why are these different ways to access the data in an object?Investigating Haxe has only convinced me that JavaScript isn't as bad as I thought it was. JavaScipt's "everything's an object" makes sense now. It's beautiful simplicity.And AS3's gradual typing is a truly genius improvement upon JavaScript -- typed when you want it, untyped when you don't.Since Haxe came later, I assumed it was a further advancement of type systems. It's not.
Juraj - I appreciate your through and thoughtful response. I'll keep playing with my projects with your ideas in mind.Again, I'm certainly not against types per se, but something about Haxe's type system definitely trips me up regularly, and slows down my workflow to the point where I question Haxe's usefulness to me. I'm doing something that's incongruous with Haxe's expected workflow, I'm not the only one, and the interesting learning is how Haxe could either evolve to support this, or actively lead devs like me away from these pitfalls.
But to your point -- "declare [everything] with a valid initial value and move on" -- it sounds good... but that's not how I approach software design. I build fast-as-I-can and refine as I go. I don't care if the first pass if trash because most implementations get re-written two or three times anyway. I want to prove the concept before circling back to put real effort into making it pretty or even "correct" (by ivory tower CS PhD definitions of correct.) In the beginnings of a project, the pain points and proper abstractions are unknown, I'd rather put minimal effort into prototyping the system, then come back and optimize and refactor the bits that clearly need work.If Haxe doesn't support this design metholodogy, it seems like a huge problem (for me, at least.)
I also come from as3 ( flash ) land and still investigating Haxe as language to use in our company. For me , as a programmer which use many languages in my work, such as as3, java and php , missing of normal for loops in traditional C-style is strange and make me a little bit uncomfortable when using Haxe. I don't know why Haxe team think this loops are not neccessary or you can use macros for that and I'm sure I won't change that opinion, but for me almost every language which I know have for loop ( java, as3, php, javascript , swift etc)
Hi Guys,
I'm trying to create a convenient Haxe/JS for handle cookies.
As you you know, Cookies sometimes have several vars in one Cookie in this pattern: myCookie = "key1=value1,key2=value2...keyN=valueN".
So I think it's will be nice if I could to access to those vars like: cookies["myCookie"]["key1"] (cookies is a Data structure that contain all cookies)
BUT sometimes the cookie doesn't have multiple vars and it's simply: myCookie = "value" and I want to access those vars as cookies["myCookie"]
I need a Data structure that can contain Map<String, String> and String?
I tried a lot and my best shot is Map<String, Dynamic> but then I must to cast it like: cookies["myCookies"]:Map<String, String>["key1"].
p.s (and big one :D) I need to access to that structure from pure JS in the same way...
If it's impossible I just do it with function calls instead a complicated data structure... But I just trying to strech Haxe capabilities
Viva la Haxe
Thank you!
Miki
--
You received this message because you are subscribed to a topic in the Google Groups "Haxe" group.
You received this message because you are subscribed to the Google Groups "Haxe" group.