4 ms·
Type based programming does not quite work in weakly typed languages.
by cema 10y ago
Type based programming does not quite work in weakly typed languages.
- davidgrenier 10y agoI think you should take what he said as saying we should get rid of those
- betenoire 10y ago> get rid of those There are many legitimate uses for scripting languages. It would be impossible and undesirable to get rid of them.
- pjmlp 10y agoScripting languages are just that, for plain scripts, not full blown applications.
- betenoire 10y agothat's my point. you don't get rid of the tools you use incorrectly, you learn to use them correctly.
- pjmlp 10y agoI was talking in the context of making full stack applications, not scripts for copying files around, automate software installation and such. And even there I am most likely to use a ML derivative language than Perl, Python or something else.
- brianwawok 10y agoWhat is the correct use of node.js? I claim there is none.
- ska 10y agoweakly typed != scripting.
- cema 10y agoCould be implied, of course. Still, there is a noticeable segment who think otherwise (eg a large portion of the Clojure community).
- eutectic 10y agoEven in C you can e.g. use singleton structs to distinguish different semantic types.
- JoeAltmaier 10y agoDidn't you used to be able to use typedef scalars for that? Somewhere that got lost (some name-mangling issue trumped it).
- Bromskloss 10y ago> Didn't you used to be able to use typedef scalars for that? Oh, I was so disappointed when I realised that those aren't considered distinct types. That ruins half the use of typedef.
- pjmlp 10y agoWhich I am not a big fan of. I rather use the Algol and ML family of languages, when given the option.