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
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