views:

344

answers:

8

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?

+4  A: 

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:

John Weldon
I pity the fool who tries to use C++ for web development. Java is tolerable, though.
JSBangs
It's all about requirements right :)
John Weldon
Regarding web development using C++ you may want to check out http://pocoproject.org/
none
@JS Bangs, Are you speaking from experience of from some things you've heard?
Vulcan Eager
CPPCMS can be a good start if performances are criticals : http://cppcms.sourceforge.net/
Klaim
+5  A: 

Python is strongly-typed, and widely used for web.

PiotrLegnica
+5  A: 

You can develop Java web-applications. See JSPs.

Poindexter
+4  A: 

You can use Java for web development. You would then need Tomcat or another Servlet Container that supports the deployment of Java Servlets and JSPs.

Best wishes,
Fabian

halfdan
+2  A: 

There is an OCaml web programming framework, and OCaml is strongly and statically typed if that's what you are looking for.

Pascal Cuoq
+1  A: 

I just came across Lift - a framework for web development using Scala.

Vulcan Eager
A: 

Seaside is a web-framework for Smalltalk.

Yardena
A: 

Wt is a web development framework for C++.

Vulcan Eager