C# examples always use var to declare variables. Why would you do that? Why voluntarily throw away the readability of knowing what type a variable has just from reading the code?
@cato Yes, and python examples should use explicit typing too.
@x44203 well, python doesn't support that.
@cato I think you can do "abcd : int = 4" to explicitly type it but afaik you can override the type later on lol
@x44203 Yeah, that's annotations, they don't enforce anything. That's more of a hint for third-party tools
@cato Visual Studio shows the type on mouseover. ;) var is actually more readable than Tuple<string, Dictionary<string, List<IChirpable>>>
@uvok yes, but VS is not available in every scenario.
chaos.social – a Fediverse instance for & by the Chaos community