Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strongly-typed languages for web programming

Are there any strongly-typed programming languages for the Web? I program in PHP now, but often I wish it yelled at me when I tried to compare a number to a string. Functions in the standard library that can return either a bool or an integer don't make anything easier either.

I know there's .NET, but is it my only choice?

like image 241
Justin Avatar asked Dec 07 '09 17:12

Justin


People also ask

Is C++ strongly or weakly typed?

C++ is reasonably strongly typed, and the ways in which it has been lenient that have historically caused trouble have been pruned back, such as implicit casts from void* to other pointer types, and finer grained control with explicit casting operators and constructors.

Is Python strongly or weakly typed?

Python is both a strongly typed and a dynamically typed language. Strong typing means that variables do have a type and that the type matters when performing operations on a variable. Dynamic typing means that the type of the variable is determined only during runtime.

Is JavaScript strongly or weakly typed?

JavaScript is considered a “weakly typed” or “untyped” language. The type in question here are the data types—nothing to do with typing from your keyboard.

Is Java or Ada more strongly typed?

Strongly Typed Strong typing is seen as a tool to ensure data correctness. C++, Java, and C# all claim to be strongly typed. Ada is more strongly typed than those languages. Unlike C, C++, Java, or C#, Ada does not provide implicit conversions between numeric types.


2 Answers

You can develop Java web-applications. See JSPs.

like image 73
Poindexter Avatar answered Oct 12 '22 23:10

Poindexter


Java? C++? Any language can be a web language... More details on your requirements would be needed to make a specific recommendation.

Python is a powerful, and popular dynamic strong typed language for web development:

  • PyWeb
  • Django
  • Pylons

  • Wt is a good C++ web framework

like image 40
John Weldon Avatar answered Oct 13 '22 00:10

John Weldon