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

    ambitious-knife-25690

    08/03/2019, 6:04 PM
    cause vshaxe just uses api's from the languageserver
  • b

    bitter-family-72722

    08/03/2019, 6:09 PM
    you could just use regular Haxe syntax highlighting for it
  • b

    bitter-family-72722

    08/03/2019, 6:09 PM
    as for actual code completion and such... that's a lot harder
  • b

    bitter-family-72722

    08/03/2019, 6:10 PM
    IMO you're better off just using regular Haxe code if you want IDE support
  • b

    bitter-family-72722

    08/03/2019, 6:11 PM
    this is an interesting approach in that regard https://github.com/jeremyfa/interpret
  • a

    ambitious-knife-25690

    08/03/2019, 6:13 PM
    unrelated: when my hair is that long it basically has the same thickness but doesn't look as good
  • a

    ambitious-knife-25690

    08/03/2019, 6:13 PM
    lame
  • h

    handsome-television-62908

    08/03/2019, 6:22 PM
    Thanks you two!
  • a

    ambitious-knife-25690

    08/03/2019, 6:33 PM
    i firmly believe my hair comment was the most helpful
  • b

    brave-kangaroo-30399

    08/03/2019, 7:12 PM
    My cpp compiles all of a sudden stopped working with HaxeUI...
  • b

    brave-kangaroo-30399

    08/03/2019, 7:13 PM
    error C2039: '_switch' : is not a member of 'haxe::ui::components::_Switch::Events_obj'
  • b

    brave-kangaroo-30399

    08/03/2019, 7:13 PM
    Maybe DCE-related
  • b

    brave-kangaroo-30399

    08/03/2019, 7:18 PM
    Yes, DCE-related
  • b

    brave-kangaroo-30399

    08/03/2019, 7:19 PM
    I don't think I've ever gotten a compile-time DCE-related error
  • h

    handsome-television-62908

    08/03/2019, 8:05 PM
    @bright-gpu-74537 It's compiling and working now! Awesome 😄
  • k

    kind-state-25286

    08/04/2019, 2:02 PM
    so I'm giving haxeui a go
  • k

    kind-state-25286

    08/04/2019, 2:03 PM
    where can I find a demo?
  • k

    kind-state-25286

    08/04/2019, 2:03 PM
    I landed here: https://github.com/haxeui/haxeui-demo
  • b

    brave-kangaroo-30399

    08/04/2019, 2:18 PM
    The component-examples repo
  • k

    kind-state-25286

    08/04/2019, 2:34 PM
    thanks
  • b

    bright-gpu-74537

    08/06/2019, 6:27 AM
    so this is pretty swish... haxe4 operator overloading: https://try.haxe.org/#8aFf9
  • b

    bright-gpu-74537

    08/06/2019, 6:27 AM
    before i go down the route of any impl, is there any pitfalls someone here might know... any reason to not do this?
  • b

    bright-gpu-74537

    08/06/2019, 6:28 AM
    ah... ok,
    main.doesntExist;
    doesnt error at compile time now, i could make it error at runtime with an exception or something, but that seems like a pretty huge tradeoff
  • b

    brainy-machine-50829

    08/06/2019, 6:35 AM
    I don't like things like this much. They do improve syntax a bit, but it depends on what's the usage. It's basically hiding the fact that it's dynamic access, like Xml's Fast/Access. If all the content is known at compile time, macros. If not, then if it's not used often
    comp.get("myId")
    , if it is,
    comp.myId
    is viable, but only if it's obvious that it's dynamic. And only if there's no other fixed properties.
  • b

    bright-gpu-74537

    08/06/2019, 6:37 AM
    yeah, i think i agree with you... esp the fact that its "hiding" compile errors
  • s

    silly-kangaroo-60312

    08/06/2019, 6:40 AM
    accessor methods are already commonly used in haxe, so possible dynamic access kind of has to be assumed anyway
  • b

    brainy-machine-50829

    08/06/2019, 6:43 AM
    I wouldn't say commonly. And I definitely won't assume it anywhere.
  • b

    bright-gpu-74537

    08/06/2019, 6:44 AM
    i mean, its fair enough to assume some lib has dynamic access, but certainly not all, and i certainly dont want to introduce it into mine
  • b

    bright-gpu-74537

    08/06/2019, 6:45 AM
    i mean, having
    <button bob='...' />
    compile is all types of wrong (to me)
  • b

    bright-gpu-74537

    08/06/2019, 6:45 AM
    i could make it error at runtime, ofc, but it just shouldnt have compiled in the firstplace imo
1...888990...1687Latest