Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mrfatalo |
Hi I’m new as a programmer, I apologize if the question may seem stupid or repetitive.
//
Question about compiling the code in static typing:
Am I writing incorrectly? (It’s works, but can cause trouble, mistakes, confusions?)
//
This is my example:
I know i can use the :=
operator on variables.
(but I find it annoying to go to the end of the line to read the type)
I know aswell i can store variables inside the function():
.
(And I also find this annoying because sometimes it becomes a longer line of variables)
What is the right solution?
Did i thinking, and making, wrong?
Thank you all for you attention, sorry again if question and code looking stupid.