Should PHP be case sensitive. OR for that matter any language. I so much like the independence that I get from VB6 without worrying about casing.
Printable View
Should PHP be case sensitive. OR for that matter any language. I so much like the independence that I get from VB6 without worrying about casing.
Personal preference. I have often been told that VB6/VB.NET being case insensitive (in the IDE, take note) promotes laziness.
It does. As well as a lot of other things with VB. Thats why it is often so hard for VB programmers to move to an other language afterwards.
well in a way this laziness is a convenience, why would anyone keep same names for two variables/functions in different case. Would it not promote confusing code.
No, it is the opposite, it makes you learn the way to name Classes, Functions, and Variables in different languages. Like in many languages you have a big letter in front of a class name, and not for a variable. It is not ment to make two variable names with the same name but with different capitalization.
ØØ
Ohhh just to add to that. You can see a similar example when it comes to indentation. Many new VB programmers don't use tab at all. How easy is it to read it then?
Other languages like Python wont work if you don't have it. It uses ONLY indentation to group functions and branching. So it all comes down to readability in the end.
ØØ
well we all were novices once. Every one has a learning curve.Quote:
Originally Posted by NoteMe
Why on earth would some one create a language like that.... :eek:Quote:
Other languages like Python wont work if you don't have it. It uses ONLY indentation to group functions and branching. So it all comes down to readability in the end.
ØØ
I still create variables that are properly capitalized, and like the fact that the IDE remembers them the way they were defined. It's a lot better than QB, which capitalized all keywords.
I am surprised very few people have taken part into this poll.
It means the results are less accurate. how can I make more people particiate.
By asking them very nicely and carrying a baseball bat. :D
Most people who wanted to participate have probably done so... this isn't a very frequented forum.
It makes you write pretty code.....code that looks like poetry...;)Quote:
Originally Posted by Bolerophone
You know what'd be perfect? The ability to turn it on and off! Like a simple "option casesensitive off" at the beginning of the program, or whatever would be equivalent for language X. Let people have their case sensitivity if they want, but at the same time don't deter users. Of course this might lead into problems with some libraries..
Bill