https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    brainy-machine-50829

    08/06/2019, 6:59 AM
    Coconut has all this typed. Pretty neat.
  • b

    brainy-machine-50829

    08/06/2019, 6:59 AM
    Until you wanna do something that's missing in the types. 😄
  • b

    bright-gpu-74537

    08/06/2019, 7:29 AM
    should be typed in haxeui too... not the same way coconut works, for sure, but
    <button bob="tim" />
    would turn into
    var c = new Button(); c.bob = "tim";
    (which would fail compilation because there is no bob prop)
  • b

    bright-gpu-74537

    08/06/2019, 7:30 AM
    which is the reason this operator overloading is a no go for me as it stops that and moves it to runtime
  • b

    bright-yak-48460

    08/06/2019, 7:56 AM
    Any thoughts on a code-hinting friendly xml scheme?
  • b

    bright-gpu-74537

    08/06/2019, 8:04 AM
    xsd would be nice, but the issue there is a) most ides dont support it and b) it need to be some type of dynamic xsd
  • b

    bright-gpu-74537

    08/06/2019, 8:04 AM
    :/
  • b

    brainy-machine-50829

    08/06/2019, 8:10 AM
    There's lot of talk around inlined markup in Haxe, with no consensus so far.
  • b

    brainy-machine-50829

    08/06/2019, 8:18 AM
    Would be fun if we eventually had some way to hook into autocompletion from inside macros.
  • b

    bitter-family-72722

    08/06/2019, 9:02 AM
    @silly-kangaroo-60312 I don't think accessor methods are comparable to dynamic access
  • s

    silly-kangaroo-60312

    08/06/2019, 9:08 AM
    yeah, they do different things. agree. I just mentally lump them together when comparing haxe to other languages where a property is basically just a namespaced variable
  • b

    bitter-family-72722

    08/06/2019, 9:10 AM
    namespaced variable?
  • s

    silly-kangaroo-60312

    08/06/2019, 9:11 AM
    well, if you think about objects as namespaces
  • b

    bitter-family-72722

    08/06/2019, 9:13 AM
    I don't really follow, properties aren't really any different from variables in that regard
  • b

    bitter-family-72722

    08/06/2019, 9:13 AM
    to me, a property is generally syntactic sugar for getter / setter methods
  • s

    silly-kangaroo-60312

    08/06/2019, 9:14 AM
    the point is that in haxe, compared to other languages, just setting or getting a property can do a lot more and there is a chance of all kinds of side effects
  • b

    bitter-family-72722

    08/06/2019, 9:15 AM
    that's the case in every language with properties
  • s

    silly-kangaroo-60312

    08/06/2019, 9:17 AM
    yeah, I was just saying in haxe it's much more common practice, so it's not really that surprising
  • b

    bitter-family-72722

    08/06/2019, 9:17 AM
    I don't know, I think it's pretty common practice in other languages with properties too, C# for instance... 😄
  • b

    bitter-family-72722

    08/06/2019, 9:18 AM
    I guess this discussion isn't really going anywhere
  • s

    silly-kangaroo-60312

    08/06/2019, 9:20 AM
    yeah, this is pretty subjective.
  • b

    bitter-family-72722

    08/06/2019, 9:21 AM
    as for having side effects in accessors.. IMO that should be considered bad practice regardless of the language
  • b

    bitter-family-72722

    08/06/2019, 9:21 AM
    well, in getters I should say
  • b

    bright-gpu-74537

    08/06/2019, 10:03 AM
    i also think that there is a world of difference between getters / setters doing "extra stuff" and dynamic properties on classes, ie "foo.bar" (where .bar doesnt exist) - they are totally different things
  • b

    bitter-family-72722

    08/06/2019, 10:04 AM
    yeah
  • b

    bright-gpu-74537

    08/08/2019, 2:31 PM
    so im (slowly) peicing the haxeui.org website back together, and part of that is a new (and proper component explorer)
  • b

    bright-gpu-74537

    08/08/2019, 2:31 PM
    https://github.com/haxeui/component-explorer
  • b

    bright-gpu-74537

    08/08/2019, 2:31 PM
    ... ... ... PRs more than welcome! 😉 😄
  • b

    bright-gpu-74537

    08/08/2019, 3:17 PM
    this is it in the context of the "new" (not really new at all - mainly scraped from waybackwhen machine) site:
  • b

    bright-gpu-74537

    08/08/2019, 3:17 PM
    im not convinced... :/
1...899091...1687Latest