What is Nostr?
stephann /
npub1anc…07rn
2024-11-15 14:19:13

stephann on Nostr: Just wrote a HTML builder with GDScript. Why? Why not? Some insights: - it would be ...

Just wrote a HTML builder with GDScript. Why? Why not?

Some insights:
- it would be nice to have a syntax sugar for lambdas/callables

- To avoid `body({}, func():`, I have to make the first parameter to be `attributes_or_callable`, then check if it is a Dictionary or a Callable, and I shouldn't allow passing two Callables.

- I could not use {class="xyz"} because GDScript assume `class` as keyword, I think it should be handled as a String literal/StringName.

#ScreenshotSaturday #MadeWithGodot

Author Public Key
npub1anc8ntd48ptr564yn9kz9hhn2kt9evdwagjyggkc926605zc09hsyr07rn