I'm a very strong believer in strong typing, and that a function should have one return type and not be able to pass/assign whatever you want to anything...
(That's not to say you can't create datatypes that can represent multiple types, you can have things like union values that can represent multiple types, they just need to be explicitly defined)
@gaurdianaq You can learn bad habits everywhere, its not really the job of the language to prevent this. But at least you are enforced to do proper indentation and have some semantic sugar which lowers the mental load while reading and writing (thinking about something like "if var is not whatever"
Server für Leipzig im Fediverse. <3 Diversität