Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Ategon ( Ategon@programming.dev ) M to Godot@programming.dev · 2 years ago

Daily Godot Tip #5: You can enable Add Type Hints in the editor settings to make auto generated code be spawned in with static typing

programming.dev

video
message-square
4
link
fedilink
44
video

Daily Godot Tip #5: You can enable Add Type Hints in the editor settings to make auto generated code be spawned in with static typing

programming.dev

Ategon ( Ategon@programming.dev ) M to Godot@programming.dev · 2 years ago
message-square
4
link
fedilink
alert-triangle
You must log in or register to comment.
  • astrsk ( astrsk@kbin.run ) 
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    This is a good tip. While it’s nice it’s automatic for templates it would be nice if I could enable a warning or even build error if I miss a type hint. I’ve started using them everywhere because it helps me when I’m going back through old code or code that hasn’t changed in a while. Especially helpful for debugging. As a recent typescript convert, I much prefer gdscript with type hints.

    • Gamma ( GammaGames@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      You actually can make them errors!

  • grrgyle ( grrgyle@slrpnk.net ) 
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    Very handy, thank you!

  • Binette ( Binette@lemmy.ml ) 
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    I remember it being enabled automatically at some point, but then it was removed. Or maybe I’m remembering it wrong

Godot@programming.dev

godot@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !godot@programming.dev

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

  • Godot Engine
  • GitHub
  • Godot Forums
  • Mastodon

Other Communities

  • !inat@programming.dev
  • !play_my_game@programming.dev
  • !destroy_my_game@programming.dev
  • !voxel_dev@programming.dev
  • !roguelikedev@programming.dev
  • !game_design@programming.dev
  • !gamedev@programming.dev

Rules

  • Posts need to be in english
  • Posts with explicit content must be tagged with nsfw
  • We do not condone harassment inside the community as well as trolling or equivalent behaviour
  • Do not post illegal materials or post things encouraging actions such as pirating games

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

  • The icon is a modified version of the official godot engine logo (changing the colors to a gradient and black background)
  • The banner is from Godot Design
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 7 users / day
  • 40 users / week
  • 227 users / month
  • 1.02K users / 6 months
  • 134 local subscribers
  • 8.04K subscribers
  • 1.04K Posts
  • 2.27K Comments
  • Modlog
  • mods:
  • snowe ( snowe@programming.dev ) 
  • Ategon ( Ategon@programming.dev ) 
  • Feyter ( Feyter@programming.dev ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code