What do you guys think about dynamicall typed languages
-
So what do you think about languages like fuze
Who is not strongly typed. Do you think its good
Or not good. In my opinion on the one hand its good for beginners but on the other hand it takes runtime and can let to mistakes in your code. Fuze solved it quite well i think. But if i see languages like ruby were everything is an object its maybe not that good. I mean you can put a methode to an operator because even the operator is a object. -
Fundamentally, code is a layer between machines and humans. In my opinion, code should be optimized for the interaction with humans, and then it's up to the software between the code and the machine, to translate that to something that is optimized for machine execution.
You ask about our opinions about languages that are loosely typed. And my opinion depends. I think with designing a language, there are many factors to think about. So when you're "optimizing your language for humans", you will probably have a specific audience in mind, that influences the design choices. Just to name a few things that come to mind:
- Is the coder a beginner or an expert?
A beginner will probably need a more verbose language, while an expert may want to write code efficiently. - What kind of programs does the coder want to make?
If the language is used to write a script to install software remotely (on a different machine), then you need to focus on different features compared to a language to create your own operating system. - What is the worse case scenario when things go wrong?
If you're going to write the code to launch a rocket, then you may want full control and precision (you don't want an interrupt on the CPU scheduler for a keyboard event that may mess up the timing of something highly precise and expensive). While if the worst case scenario is that a Switch gets bricked, that's bad, but not as important.
A well designed language allows to describe the desired behavior accurately, and also allows to understand that behavior (by the targeted audience) when reading the code.
The main risk of a loosely typed language is, that if the code doesn't show what types are used, as a coder it may be difficult to think of the behavior of that code when a different type is used than you expected.
Despite that risk, I think choosing a loosely typed language is absolutely a valid choice for certain types of languages. But that doesn't mean that that language is a valid choice for every situation.
You shouldn't step in an airplane that depends on a program running in FUZE.
But the choice to have FUZE loosely typed, I completely understand and I think it's the correct choice. - Is the coder a beginner or an expert?
-
@PB____ I agree in one way yes but One point if you start with a language like c++ it makes things easier. Switching from a strongly typed language to an not so strongly typed language isnt that hard. And Just for beginners its important to see if theyre variable is a string or a float or an integer.
-
I like sausages too but they have to be well done and not skinless ones ewww.
-